TComponentList class
List to manage component instances.
Declaration
TComponentList = class(TObjectList)Inheritance
- TComponentList
- TObjectList
- TList
- TObject
Description
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.
See also
Properties
Items | public | Index-based access to the elements in the list. |
Methods
Notify | protected | |
GetItems | protected | |
SetItems | protected | |
HandleFreeNotify | protected | |
Destroy | public | Destroys the instance. |
Add | public | Add a component to the list. |
Extract | public | Remove a component from the list without destroying it. |
Remove | public | Remove a component from the list, possibly destroying it. |
IndexOf | public | Search for an instance in the list. |
First | public | First non-nil instance in the list. |
Last | public | Last non-nil instance in the list. |
Insert | public | Insert a new component in the list. |
Inherited
From TObjectList (5)
From TList (26)
AddList Assign Capacity Clear Contains Count Delete Error Exchange Expand FPOAttachObserver FPODetachObserver FPONotifyObservers Get GetCapacity GetCount GetEnumerator GetList Grow List Move Pack Put SetCapacity SetCount Sort
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
