PropertyTabAttribute.InitializeArrays 方法

定義

初始化屬性。

多載

InitializeArrays(String[], PropertyTabScope[])

使用指定索引標籤類別的名稱和索引標籤範圍的陣列,初始化屬性。

InitializeArrays(Type[], PropertyTabScope[])

使用指定索引標籤類別的名稱和索引標籤範圍的陣列,初始化屬性。

InitializeArrays(String[], PropertyTabScope[])

來源:
PropertyTabAttribute.cs
來源:
PropertyTabAttribute.cs
來源:
PropertyTabAttribute.cs

使用指定索引標籤類別的名稱和索引標籤範圍的陣列,初始化屬性。

protected:
 void InitializeArrays(cli::array <System::String ^> ^ tabClassNames, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
protected void InitializeArrays (string[] tabClassNames, 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[]

型別之完整型別名稱的陣列,用於在 [屬性] 視窗建立索引標籤。

tabScopes
PropertyTabScope[]

每個索引標籤的範圍。如果範圍是 Component,則只會針對具有對應 PropertyTabAttribute之的元件顯示。 如果是 Document,則會顯示文件上所有元件的範圍。

例外狀況

tabScopes 中的一或多個值不是 DocumentComponent

-或-

tabClassNamestabScopes 陣列的長度不相符。

-或-

tabClassNamestabScopesnull

備註

InitializeArrays 提供公用程式函式,可用來設定這個 PropertyTabAttribute 指定的索引標籤類別類型。

適用於

InitializeArrays(Type[], PropertyTabScope[])

來源:
PropertyTabAttribute.cs
來源:
PropertyTabAttribute.cs
來源:
PropertyTabAttribute.cs

使用指定索引標籤類別的名稱和索引標籤範圍的陣列,初始化屬性。

protected:
 void InitializeArrays(cli::array <Type ^> ^ tabClasses, cli::array <System::ComponentModel::PropertyTabScope> ^ tabScopes);
protected void InitializeArrays (Type[] tabClasses, 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 中的一或多個值不是 DocumentComponent

-或-

tabClassNamestabScopes 陣列的長度不相符。

-或-

tabClassNamestabScopesnull

備註

InitializeArrays 提供公用程式函式,可用來設定這個 PropertyTabAttribute 指定的索引標籤類別類型。

適用於