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.

C#
protected void InitializeArrays(string[]? tabClassNames, System.ComponentModel.PropertyTabScope[]? tabScopes);
C#
protected void InitializeArrays(string[] tabClassNames, System.ComponentModel.PropertyTabScope[] tabScopes);

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 lengths 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

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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.

C#
protected void InitializeArrays(Type[]? tabClasses, System.ComponentModel.PropertyTabScope[]? tabScopes);
C#
protected void InitializeArrays(Type[] tabClasses, System.ComponentModel.PropertyTabScope[] tabScopes);

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 lengths of the tabClasses and tabScopes arrays do not match.

-or-

tabClasses 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

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1