[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
List to manage component instances.
Source position: contnrs.pp line 96
type TComponentList = class(TObjectList) |
||
public |
||
destructor Destroy; override; |
|
Destroys the instance |
function Add(); |
|
Add a component to the list. |
function Extract(); |
|
Remove a component from the list without destroying it. |
function Remove(); |
|
Remove a component from the list, possibly destroying it. |
function IndexOf(); |
|
Search for an instance in the list |
function First; |
|
First non-nil instance in the list. |
function Last; |
|
Last non-nil instance in the list. |
procedure Insert(); |
|
Insert a new component in the list |
property Items []: TComponent; default; [rw] |
|
Index-based access to the elements in the list. |
end; |
|
List to manage component instances. |
|
| | ||
|
List to manage object instances. |
|
| | ||
| | ||
TObject |
TComponentList is a TObjectList descendent which has as the default array property TComponents instead of objects. It overrides some methods so only components can be added.
In difference with TObjectList, TComponentList removes any TComponent from the list if the TComponent instance was freed externally. It uses the FreeNotification mechanism for this.
|
TFPList descendent which manages objects. |
|
|
List to manage object instances. |
|
|
List of classes. |