Share via


XmlMappedRange.Count Property

Definition

Gets the number of objects in the XmlMappedRange control.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

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 void DisplayCount()
{
    MessageBox.Show("There are " + this.CustomerLastNameCell.Count +
        " items in the XmlMappedRange.");
}
Private Sub DisplayCount()
    MsgBox("There are " & Me.CustomerLastNameCell.Count & _
        " items in the XmlMappedRange.")
End Sub

Applies to