Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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:
© 2015 Microsoft