Udostępnij za pośrednictwem


XmlMappedRange.Column Property (2007 System)

Gets the number of the column in the XmlMappedRange control.

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

Syntax

'Declaration
Public ReadOnly Property Column As Integer
'Usage
Dim instance As XmlMappedRange 
Dim value As Integer 

value = instance.Column
public int Column { get; }
public:
property int Column {
    int get ();
}
public function get Column () : int

Property Value

Type: System.Int32
The number of the column in the XmlMappedRange control.

Remarks

Because the XmlMappedRange corresponds to only one cell, this property always returns 1.

Examples

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

Private Sub DisplayColumnAndRow()
    MsgBox("CustomerLastNameCell is in column " & _
        Me.CustomerLastNameCell.Column.ToString() & " and row " & _
        Me.CustomerLastNameCell.Row.ToString())
End Sub
private void DisplayColumnAndRow()
{
    MessageBox.Show("CustomerLastNameCell is in column " +
        this.CustomerLastNameCell.Column.ToString() + " and row " +
        this.CustomerLastNameCell.Row.ToString());
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace