PropertyTabAttribute.InitializeArrays 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化屬性。
多載
| 名稱 | Description |
|---|---|
| InitializeArrays(String[], PropertyTabScope[]) |
使用指定的分頁類別名稱和分頁作用域陣列初始化屬性。 |
| InitializeArrays(Type[], PropertyTabScope[]) |
使用指定的分頁類別名稱和分頁作用域陣列初始化屬性。 |
InitializeArrays(String[], PropertyTabScope[])
使用指定的分頁類別名稱和分頁作用域陣列初始化屬性。
protected:
void InitializeArrays(cli::array <System::String ^> ^ tabClassNames, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
protected void InitializeArrays(string[] tabClassNames, System.ComponentModel.PropertyTabScope[] tabScopes);
member this.InitializeArrays : string[] * System.ComponentModel.PropertyTabScope[] -> unit
Protected Sub InitializeArrays (tabClassNames As String(), tabScopes As PropertyTabScope())
參數
- tabClassNames
- String[]
一個完全限定的類型名稱陣列,該類型在 屬性視窗 上為 tabs 建立。
- tabScopes
- PropertyTabScope[]
每個分頁的範圍。若作用域為 Component,則僅對應的 PropertyTabAttribute分量顯示。 如果是 Document,則會顯示文件中所有元件的值。
例外狀況
其中 tabScopes 一個或多個值不是 Document 或 Component。
-或-
和 tabScopes 陣列的長度tabClassNames不匹配。
-或-
tabClassNames 或 tabScopes 為 null。
備註
InitializeArrays 提供一個實用函數,可用來設定指定 PropertyTabAttribute 表表類別的類型。
適用於
InitializeArrays(Type[], PropertyTabScope[])
使用指定的分頁類別名稱和分頁作用域陣列初始化屬性。
protected:
void InitializeArrays(cli::array <Type ^> ^ tabClasses, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
protected void InitializeArrays(Type[] tabClasses, System.ComponentModel.PropertyTabScope[] tabScopes);
member this.InitializeArrays : Type[] * System.ComponentModel.PropertyTabScope[] -> unit
Protected Sub InitializeArrays (tabClasses As Type(), tabScopes As PropertyTabScope())
參數
- tabClasses
- Type[]
要建立的分頁類型。
- tabScopes
- PropertyTabScope[]
每個分頁的範圍。若作用域為 Component,則僅對應的 PropertyTabAttribute分量顯示。 如果是 Document,則會顯示文件中所有元件的值。
例外狀況
其中 tabScopes 一個或多個值不是 Document 或 Component。
-或-
和 tabScopes 陣列的長度tabClasses不匹配。
-或-
tabClasses 或 tabScopes 為 null。
備註
InitializeArrays 提供一個實用函數,可用來設定指定 PropertyTabAttribute 表表類別的類型。