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

TdxCustomNavBar.SaveToStream(TStream,Boolean) Method

Saves the control layout to the stream specified.

#Declaration

Delphi
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