type TMtxComponentList = class(TMtxComponent);
Manages a list of TMtxComponents.
Manages a list of TMtxComponent. The class can be quickly customized to manage a list of components derived from TMtxComponent. The components in the list are owned by the object and are created and destroyed automatically when setting the Count property.
Properties
| Name | Type | Description |
|---|---|---|
| BlockAssign | Boolean | Block streaming of specific properties when storing only a "template". |
| Count | Integer | Defines the size of the list. |
| EditorActive | Boolean | Returns True, if the component editor is displayed. |
| First | TMtxComponent | Returns the pointer to Items[0]. |
| Item | TMtxComponent | Default property to access elements from the stored list. |
| Last | TMtxComponent | Returns Items[Count - 1]. |
| OnItemAdd | TMtxComponentAddEvent | Event triggered after a new item has been added. |
| OnItemDelete | TMtxComponentDeleteEvent | Event triggered before the Item will be deleted. |
| PropagateTemplate | Boolean | Defines how TMtxComponentList.Propagate will proparage properties. |
| Reference | TReferenceList | Stores a list of components that have to be notified, when this component is destroyed. |
Methods
| Name | Description |
|---|---|
| AllowStreaming | Returns the negatated value of BlockAssign. |
| Assign | Assign values of all published properties from Source. |
| AssignTemplate | Assign values of "template-like" published properties from Source. |
| Clear | Deletes all items from the list. |
| Delete | Deletes the item from the list. |
| EditorClass | To be overriden in descendanr classses. |
| Exchange | Swaps the position of two items in the Items array. |
| Extract | Extracts the item from the list. |
| Insert | Inserts an item at position Index |
| LoadFromStream | Load the component from Src stream. |
| LoadTemplateFromFile | Load a template from file. |
| LoadTemplateFromStream | Load a template from stream. |
| Move | Changes the position of an item in the Items array. |
| Propagate | Assign all property values of the defined item to the items specified with their indexes in the DstIndex array. |
| Remove | Deletes the first reference to the Item parameter from the Items array. |
| Reset | Reset is called after loading the data from stream or file. |
| Rotate | Rotate the list up or down. |
| SaveTemplateToFile | Save template to file. |
| SaveTemplateToStream | Save template to stream. |
| SaveToStream | Save the component to Dst stream. |