Export (0) Print
Expand All
Expand Minimize

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)

public int Count { get; }

Property Value

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

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.");
}

Community Additions

ADD
Show:
© 2014 Microsoft