Freigeben über


XmlMappedRange.Rows Property

Definition

Gets a Range that represents the row that contains the XmlMappedRange control.

public:
 property Microsoft::Office::Interop::Excel::Range ^ Rows { Microsoft::Office::Interop::Excel::Range ^ get(); };
public Microsoft.Office.Interop.Excel.Range Rows { get; }
member this.Rows : Microsoft.Office.Interop.Excel.Range
Public ReadOnly Property Rows As Range

Property Value

A Range that represents the row that contains the XmlMappedRange control.

Examples

The following code example uses the Rows property to add a comment to the row of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void AddCommentToRows()
{
    this.CustomerLastNameCell.Rows.AddComment("This row contains " +
        "customer last names.");
}
Private Sub AddCommentToRows()
    Me.CustomerLastNameCell.Rows.AddComment( _
        ("This row contains " & "customer last names."))
End Sub

Applies to