CustomTaskPaneCollection.Count 属性

获取当前 CustomTaskPaneCollection 中的 CustomTaskPane 对象的数目。

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

语法

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

属性值

类型:System.Int32
当前 CustomTaskPaneCollection 中的 CustomTaskPane 对象的数目。

异常

异常 条件
ObjectDisposedException

已经对 CustomTaskPaneCollection 调用了 Dispose() 方法。

.NET Framework 安全性

请参见

参考

CustomTaskPaneCollection 接口

Microsoft.Office.Tools 命名空间