This documentation is archived and is not being maintained.

XmlMappedRange.Row Property (2007 System)

Gets the number of the row that contains the XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

public int Row { get; }

Property Value

Type: System.Int32
The number of the row that contains the XmlMappedRange control.

The following code example uses the Column and Row properties to display the column and row numbers of an XmlMappedRange named CustomerLastNameCell. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void DisplayColumnAndRow()
{
    MessageBox.Show("CustomerLastNameCell is in column " +
        this.CustomerLastNameCell.Column.ToString() + " and row " +
        this.CustomerLastNameCell.Row.ToString());
}

Show: