[Overview][Resource strings][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'tiObject' (#tiopf)

TtiObjectList.Delete

Removes the object at a specified position and (if OwnsObject is True) frees the object

Declaration

Source position: tiObject.pas line 634

public procedure TtiObjectList.Delete(

  i: Integer

); virtual;

Description

Call Delete to remove the object at Index from the list. (The first object is indexed as 0, the second object is indexed as 1, and so forth.) After an object is deleted, all the objects that follow it are moved up in index position and Count is decremented.

To use an object reference (rather than an index position) to specify the object to be removed, call Remove.

If OwnsObjects is True, Delete frees the object in addition to removing it from the list. To remove an object from the list without freeing it, call Extract

See also

TtiObjectList.Extract

  

Removes the specified object from the list without freeing the object


Documentation generated on: 2017-08-16