Udostępnij za pośrednictwem


XmlMappedRange.Count Property (2007 System)

Gets the number of objects 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 Count As Integer
'Usage
Dim instance As XmlMappedRange 
Dim value As Integer 

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

Property Value

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

Examples

The following code example uses the Count property to display the number of objects in an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayCount()
    MsgBox("There are " & Me.CustomerLastNameCell.Count & _
        " items in the XmlMappedRange.")
End Sub
private void DisplayCount()
{
    MessageBox.Show("There are " + this.CustomerLastNameCell.Count +
        " items in the XmlMappedRange.");
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace