Delete Method

Applies to TestComplete 15.47, last modified on January 20, 2023

Deletes the item that is at the specified position in the collection.

Declaration

collectionObj.Delete(Index) Parameters
collectionObj     One of the objects listed in the Applies To section  
Index [in] Required Integer
Result     None  

Applies To

This method applies to the following objects:

TcxEditButtons, TcxRadioGroupItems

Description

The Delete method deletes the item that is at the specified position in the collection represented by the given collectionObj object. To delete all the items from the collection, use the Clear method.

Parameters

The method has the following parameter:

Index

The index of the desired item within the collection. The index is zero-based: the first item has index 0, the second - 1, and so on. The index of the last item is Count - 1.

See Also

Add Method
Clear Method
Count Property

Highlight search results