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.LoadFromStream(TStream,Boolean) Method

Loads the control’s layout from the specified stream.

#Declaration

Delphi
procedure LoadFromStream(AStream: TStream; LoadStyles: Boolean = True);

#Parameters

Name Type
AStream TStream
LoadStyles Boolean

#Remarks

Use the LoadFromStream method to load the control’s layout from a stream. Note that settings must have been saved using the SaveToStream method.

The AStream parameter specifies the stream from which to load settings. AStream can be any TStream descendant. For instance, you can use the TFileStream object to save/restore settings using a file. The LoadStyles parameter specifies whether to load style settings. It is optional and defaults to True. Note: if style settings haven’t been saved by the SaveToStream method, the LoadStyles parameter value is ignored.

If storing settings in a stream doesn’t suit your needs, refer to the SaveToIniFile and SaveToRegistry methods.

See Also