Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomLayoutControl.OnGetItemStoredProperties Event

In This Article

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

#Declaration

Delphi
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:

Delphi
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