Export (0) Print
Expand All

PropertyTabAttribute.InitializeArrays Method (Type[], 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(
	Type[] tabClasses,
	PropertyTabScope[] tabScopes
)

Parameters

tabClasses
Type: System.Type[]

The types of tabs to create.

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

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft