PropertyTabAttribute::InitializeArrays Method (array<Type^>^, array<PropertyTabScope>^)

 

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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected:
void InitializeArrays(
	array<Type^>^ tabClasses,
	array<PropertyTabScope>^ tabScopes
)

Parameters

tabClasses
Type: array<System::Type^>^

The types of tabs to create.

tabScopes
Type: array<System.ComponentModel::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.

Exception Condition
ArgumentException

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.

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

.NET Framework
Available since 1.1
Return to top
Show: