Skip to main content

TdxCustomLayoutControl.OnGetItemStoredProperties Event

Enables you to customize the list of layout element settings that will be stored in external storage.

Declaration

property OnGetItemStoredProperties: TdxLayoutControlGetItemStoredPropertiesEvent read; write;

Remarks

Fires when storing layout element settings to the storage.

Sender specifies the layout control that owns AItem.

AItem specifies the layout element whose settings will be stored.

AProperties specifies the list of settings to be stored.

The following example shows how to handle the OnGetItemStoredProperties event in order to store the enabled state of standard layout items by adding the ControlEnabled setting to the list:

procedure <TForm1>.<dxLayoutControl1>GetItemStoredProperties(
  Sender: TdxCustomLayoutControl; AItem: TdxCustomLayoutItem;
  AProperties: TStrings);
begin
  if AItem is TdxLayoutItem then
    AProperties.Add('ControlEnabled');
end;

To learn how to specify the ControlEnabled setting’s value, refer to the example in the OnGetItemStoredPropertyValue help topic.

See Also