Skip to main content

TdxCustomNavBar.SaveToStream(TStream,Boolean) Method

Saves the control layout to the stream specified.

Declaration

procedure SaveToStream(AStream: TStream; SaveStyles: Boolean = True);

Parameters

Name Type
AStream TStream
SaveStyles Boolean

Remarks

Use the SaveToStream method to save the control’s settings to a stream. The target stream is specified by the AStream parameter and can be any TStream descendant. The SaveStyles parameter specifies whether style settings are saved. It is optional and defaults to True.

Use the LoadFromStream method to restore settings saved by the SaveToStream method. Note: after the SaveToStream method has been executed, AStream is positioned at the end of the stream. Thus, you must restore the initial stream’s Position property value before calling LoadFromStream. Otherwise, the saved settings will not be loaded.

You can also save the control’s settings to an INI file or to a registry path. Please refer to the SaveToIniFile and SaveToRegistry method descriptions for details.

Note

SaveToStream provides the same file output as the SaveToIniFile method.

See Also