Skip to content

TCollection.Delete

Delete an item from the collection.

Declaration

Source position: classesh.inc line 954

public 
procedure TCollection.Delete(Index: Integer);

Description

Delete deletes the item at (zero based) position Index from the collection. This will result in a cnDeleted notification.

Errors

If an invalid index is specified, an EListError exception is raised.

See also

Name Description
TCollection.Items Indexed array of items in the collection.
TCollection.Insert Insert an item in the collection.
TCollection.Clear Removes all items from the collection.