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 命名空間