Xceed Docking Windows for WinForms v2.3 Documentation
Xceed.DockingWindows Namespace / DockLayoutManager Class / LoadLayout Method / LoadLayout(Stream) Method
The readable System.IO.Stream to which to load the layout. Cannot be a null reference (Nothing in Visual Basic).


In This Topic
    LoadLayout(Stream) Method
    In This Topic
    Loads the layout from the specified stream.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadLayout( _
       ByVal stream As Stream _
    ) 
    'Usage
     
    Dim instance As DockLayoutManager
    Dim stream As Stream
     
    instance.LoadLayout(stream)
    public void LoadLayout( 
       Stream stream
    )

    Parameters

    stream
    The readable System.IO.Stream to which to load the layout. Cannot be a null reference (Nothing in Visual Basic).

    Return Value

    The name of the layout that was loaded.
    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