TcxTreeListColumn.OnGetStoredProperties Event
Enables you to customize a list of the current column’s properties to be stored to external data stores.
Declaration
property OnGetStoredProperties: TcxGetStoredPropertiesEvent read; write;
Remarks
Whenever the storing process is started by the StoreToIniFile, StoreToRegistry, or StoreToStream method call, a list of the properties to store is produced. When the OnGetStoredProperties event is fired, the list is already populated with column property names, which are stored by default. These property names are specified by the ColumnPropertiesName global constant. You can add custom property names to the list and handle the column’s OnGetStoredPropertyValue and OnSetStoredPropertyValue events to provide property values to be saved to and restored from a data store. Make certain that items in the list uniquely identify the property names they correspond to.
The Sender parameter specifies the current column.
The AProperties parameter provides access to the list of properties to be stored.
The following code represents an OnGetStoredProperties event handler, demonstrating how to extend the list with an item that corresponds to a column’s Options.Footer property.
procedure <Form>.<Column>GetStoredProperties(Sender: TObject; AProperties: TStrings);
begin
AProperties.Add('Options_Footer');
end;
Note
To customize the manner in which tree list properties are persisted, handle the tree list’s OnGetStoredProperties, OnGetStoredPropertyValue, and OnSetStoredPropertyValue events. To customize the manner in which band properties are persisted, handle a band’s OnGetStoredProperties, OnGetStoredPropertyValue, and OnSetStoredPropertyValue events.