Επεξεργασία

Κοινή χρήση μέσω


PropertyTabAttribute.InitializeArrays Method

Definition

Initializes the attribute.

Overloads

InitializeArrays(String[], PropertyTabScope[])

Initializes the attribute using the specified names of tab classes and array of tab scopes.

InitializeArrays(Type[], PropertyTabScope[])

Initializes the attribute using the specified names of tab classes and array of tab scopes.

InitializeArrays(String[], PropertyTabScope[])

Source:
PropertyTabAttribute.cs
Source:
PropertyTabAttribute.cs
Source:
PropertyTabAttribute.cs

Initializes the attribute using the specified names of tab classes and array of tab scopes.

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())

Parameters

tabClassNames
String[]

An array of fully qualified type names of the types to create for tabs on the Properties window.

tabScopes
PropertyTabScope[]

The scope of each tab. If the scope is Component, it is shown only for components with the corresponding PropertyTabAttribute. If it is Document, it is shown for all components on the document.

Exceptions

One or more of the values in tabScopes is not Document or Component.

-or-

The length of the tabClassNames and tabScopes arrays do not match.

-or-

tabClassNames or tabScopes is null.

Remarks

InitializeArrays provides a utility function that can be used to set the types of tab classes that this PropertyTabAttribute specifies.

Applies to

InitializeArrays(Type[], PropertyTabScope[])

Source:
PropertyTabAttribute.cs
Source:
PropertyTabAttribute.cs
Source:
PropertyTabAttribute.cs

Initializes the attribute using the specified names of tab classes and array of tab scopes.

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())

Parameters

tabClasses
Type[]

The types of tabs to create.

tabScopes
PropertyTabScope[]

The scope of each tab. If the scope is Component, it is shown only for components with the corresponding PropertyTabAttribute. If it is Document, it is shown for all components on the document.

Exceptions

One or more of the values in tabScopes is not Document or Component.

-or-

The length of the tabClassNames and tabScopes arrays do not match.

-or-

tabClassNames or tabScopes is null.

Remarks

InitializeArrays provides a utility function that can be used to set the types of tab classes that this PropertyTabAttribute specifies.

Applies to