XmlMappedRange.Count 属性

获取 XmlMappedRange 控件中的对象数。

命名空间:  Microsoft.Office.Tools.Excel
程序集:  Microsoft.Office.Tools.Excel(在 Microsoft.Office.Tools.Excel.dll 中)

语法

声明
ReadOnly Property Count As Integer
    Get
int Count { get; }

属性值

类型:System.Int32
XmlMappedRange 控件中的对象数。

示例

下面的代码示例使用 Count 属性显示 XmlMappedRange 中的对象数。 此代码示例假定当前工作表包含一个名为 CustomerLastNameCell 的 XmlMappedRange

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 安全性

请参见

参考

XmlMappedRange 接口

Microsoft.Office.Tools.Excel 命名空间