RAD Studio VCL Reference
|
Lists the component references.
property Items [Index: Integer]: TComponent;
__property TComponent * Items[int Index];
Use Items to access components in the list. Items is a zero-based array: The first component is indexed as 0, the second component is indexed as 1, and so forth. You can read or change the value at a specific index, or use Items with the Count property to iterate through the list.
If OwnsObjects is true, reassigning an Items value frees the component that previously occupied that position in the list.
Items can contain nil (Delphi) or NULL (C++) references. To remove nil (Delphi) or NULL (C++) references and reduce the size of the array, call the Pack method.
ComponentList1->Items[i] := Screen.CustomForms[i]; ComponentList1[i] := Screen.CustomForms[i];
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|