Skip to main content

TdxStatusBarStateIndicators.Insert(Integer) Method

Adds a new item to the specified position within the collection.

Declaration

function Insert(AIndex: Integer): TdxStatusBarStateIndicatorItem;

Parameters

Name Type
AIndex Integer

Returns

Type
TdxStatusBarStateIndicatorItem

Remarks

The Insert method creates a new indicator item with default settings and adds it to the specified position within the collection. The position of the item is specified by the Index parameter value. The method returns the newly created and added item so you can modify its settings as needed.

Note that if the Index parameter specifies a negative value, the item is added to the beginning of the collection. If the Index parameter value is greater or equal to the Count property value, the item is added to the end of the collection.

If you need to add a new item to the end of the collection, use the Add method instead.

See Also