TCompInspList Class
Internal helper class that manages the set of properties displayed by a component inspector.
Remarks
TCompInspList aggregates one or more TCompInspPropertyList objects (one per inspected instance when multi-select is active) and produces a merged, filtered, and sorted list of TProperty objects that the inspector renders. It also tracks which sub-properties are currently expanded.
Syntax
Unit: ComponentInspector
TCompInspList = class(TObject);
Constructors
| Name | Description |
|---|---|
| CreateWithOwner | Creates a TCompInspList owned by AOwner and initializes internal collections. |
Methods
| Name | Description |
|---|---|
| AddInstance | Adds AInstance to the list of inspected components and rebuilds the property list. |
| DeleteInstance | Removes AInstance from the list of inspected components and rebuilds the property list. |
| IndexOfInstance | Returns the zero-based index of AInstance in the inspected-instances list, or -1 if not found. |
| Update | Rebuilds the merged property list from all registered instances and notifies the owner inspector. |
| ValidListIndex | Returns True if Index is a valid index into the PropertyLists array. |
| ValidPropIndex | Returns True if Index is a valid index into the Properties array. |
Properties
| Name | Description |
|---|---|
| Instance | Gets or sets the currently inspected component (the first instance when multi-select is active). |
| InstanceCount | Returns the number of component instances currently being inspected. |
| Instances[Index] | Returns the component at the specified index in the inspected-instances list. |
| Mode | Gets or sets whether the list shows properties or event handlers. |
| Owner | Gets the TAdvCustomComponentInspector that owns this list. |
| Properties[Index] | Returns the TProperty at the specified row index in the merged list. |
| PropertyCount | Returns the number of visible property rows in the merged list. |
| PropertyListCount | Returns the number of per-instance TCompInspPropertyList objects maintained by this list. |
| PropertyLists[Index] | Returns the TCompInspPropertyList at the specified index. |
| Root | Gets or sets the root component used when constructing per-instance property lists. |