Share

ControlDefinitions.Item Property

Parent Object: ControlDefinitions

Description

Returns the specified ControlDefinitionobject from the collection.

Syntax

ControlDefinitions.Item( Index As Variant ) As ControlDefinition

Property Value

This is a read only property whose value is a ControlDefinition.

Parameters

Name Type Description
Index Variant Input Variant value that specifies the index of the to return. This can be either a numeric value indicating the index of the item in the collection or it can be a string indicating the ControlDefinition name. If an out of range index or a name of a non-existent ControlDefinition is provided, an error occurs.

Samples

Name Description
Add commands to the application menu Demonstrates adding command to the application menu.
Copy a sketch This sample demonstrates copying the contents of a sketch into another sketch via the API.
Add parallel environment with contextual tabs The following sample demonstrates the use of parallel environments and contextual ribbon tabs.
Creation of an override environment for a document A new ribbon tab is created and associated with the override environment.
Create a ribbon panel in an existing tab Demonstrates creating a new ribbon panel within an existing ribbon tab.
Break alignment of a section view Sample showing how to break the alignment of a drawing section view by calling the DrawingBreakViewAlignment command.

Version

Introduced in version 7

Was this information helpful?