共用方式為


XmlMappedRange.Count Property

Gets the number of objects in the XmlMappedRange control.

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

Syntax

'Declaration
ReadOnly Property Count As Integer
int Count { get; }

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 Interface

Microsoft.Office.Tools.Excel Namespace