Back to Devexpress

TdxDockingManager.LoadLayoutFromStream(TStream) Method

vcl-dxdockcontrol-dot-tdxdockingmanager-dot-loadlayoutfromstream-x28-system-dot-classes-dot-tstream-x29.md

latest2.4 KB
Original Source

TdxDockingManager.LoadLayoutFromStream(TStream) Method

Loads the layout of dock controls from the specified stream.

Declaration

delphi
procedure LoadLayoutFromStream(AStream: TStream);

Parameters

NameType
AStreamTStream

Remarks

Use the LoadLayoutFromStream method to restore the layout of dock controls previously saved to a stream using the SaveLayoutToStream method call. The source stream is specified by the AStream parameter. If the specified stream is nil , an exception is raised. If the stream’s content is not dock controls layout information, all dock panels become undocked. Please refer to the dock control’s UnDock method description for details on undocking panels.

Note

the LoadLayoutFromStream method reads information starting from the current position within the stream. Thus, you may need to update the Position property of the source stream before calling the LoadLayoutFromStream method.

Note that the LoadLayoutFromStream method loads setting only for the controls which reside on the same form as the docking manager. If the file contains settings for other controls these settings are ignored. To load the layout of all dock controls in the application, use the docking controller’s LoadLayoutFromStream method.

See Also

TdxDockingManager.LoadLayoutFromIniFile

TdxDockingManager.LoadLayoutFromRegistry

TdxDockingManager.SaveLayoutToStream

TdxDockingManager Class

TdxDockingManager Members

dxDockControl Unit