Skip to main content
A newer version of this page is available. .

TdxDockingManager.LoadLayoutFromStream(TStream) Method

Loads the layout of dock controls from the specified stream.

Declaration

procedure LoadLayoutFromStream(AStream: TStream);

Parameters

Name Type
AStream TStream

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