Skip to main content

TdxCustomTileControl.RestoreFromStream(TStream,Boolean,Boolean,string) Method

Restores the tile control’s settings from a stream.

Declaration

procedure RestoreFromStream(AStream: TStream; AChildrenCreating: Boolean = False; AChildrenDeleting: Boolean = False; const ARestoreName: string = '');

Parameters

Name Type
AStream TStream
AChildrenCreating Boolean
AChildrenDeleting Boolean
ARestoreName 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. Refer to the StoreToStream method description to learn about the settings that are persisted by these methods.

The AStream parameter specifies a TStream descendant from which the settings are restored.

The AChildrenCreating parameter determines whether non-existent tile elements (groups and items) present within the stream are created within the target tile control. On the contrary, the AChildrenDeleting parameter determines whether existing tile elements not present within the stream are deleted when restoring.

The ARestoreName parameter corresponds to the ASaveName parameter of the StoreToStream method.

For more information on the AChildrenCreating, AChildrenDeleting, and ARestoreName parameters, refer to the RestoreFromIniFile method description.

See Also