Export (0) Print
Expand All
Expand Minimize

Index Property (ActiveX Controls)

Visual Studio .NET 2003

Returns or sets the number that uniquely identifies an object in a collection.

Syntax

object.Index

The object placeholder is an object expression that evaluates to an object in the Applies To list.

Remarks

The Index property is set by default to the order of the creation of objects in a collection. The index for the first object in a collection will always be one (1).

The value of the Index property of an object can change when objects in the collection are reordered, such as when you set the Sorted property to True. If you expect the Index property to change dynamically, it may be more useful to refer to objects in a collection by using the Key property.

See Also

Index Property (Brush) | Index Property (Intersection) | Name Property (ActiveX Controls) | Tag Property (ActiveX Controls)

Applies To: Brush Object | Intersection Object | Masked Edit Control | MSChart Control

Show:
© 2014 Microsoft