Xceed Docking Windows for WinForms v2.3 Documentation
Xceed.DockingWindows Namespace / DockLayoutManager Class / LoadLayout Method / LoadLayout(String) Method
A string representing the path and filename of the layout to load. An existing path and filename must be provided.


LoadLayout(String) Method
Loads the layout from the specified location.
Syntax
'Declaration
 
Public Overloads Sub LoadLayout( _
   ByVal fileName As String _
) 
 
'Usage
 
Dim instance As DockLayoutManager
Dim fileName As String
 
instance.LoadLayout(fileName)

Parameters

fileName
A string representing the path and filename of the layout to load. An existing path and filename must be provided.
Remarks

If a ToolWindow specified in the layout does not exist in the ToolWindows collection before the layout is loaded, an exception will be thrown. Normally, a layout would be saved when the application is being closed and loaded after the ToolWindows have been added to the DockLayoutManager's ToolWindows collection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also