Skip to main content

TdxCustomTileControl.StoreToStream(TStream,string) Method

Saves the tile control’s settings to a stream.

Declaration

procedure StoreToStream(AStream: TStream; const ASaveName: string = '');

Parameters

Name Type
AStream TStream
ASaveName string

Remarks

The StoreTo~ and RestoreFrom~ methods allow you to persist tile control settings across multiple sessions. Call the StoreToStream method to save the tile control’s settings to a stream. Later, you can call the RestoreFromStream method to apply the stored settings to this or another tile control, restoring its state from the stream.

By default, the stored information includes the following element and layout-specific settings:

You can extend this list with any other settings that need to be persisted by handling the OnGetStoredProperties, OnGetStoredPropertyValue, OnSetStoredPropertyValue, and OnInitStoredObject events.

The AStream parameter specifies a TStream descendant.

For information on the ASaveName parameter, refer to the RestoreFromIniFile method description.

See Also