ComponentOne ProgressBar for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / LoadLayout Method / LoadLayout(Stream,LayoutType) Method
The stream where the values of the layout properties will be loaded.
The layout types to load.
Example

In This Topic
    LoadLayout(Stream,LayoutType) Method
    In This Topic
    Loads the control layout properties with specified types from the stream.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadLayout( _
       ByVal stream As System.IO.Stream, _
       ByVal layoutTypes As LayoutType _
    ) 
    public void LoadLayout( 
       System.IO.Stream stream,
       LayoutType layoutTypes
    )

    Parameters

    stream
    The stream where the values of the layout properties will be loaded.
    layoutTypes
    The layout types to load.
    Example
    Following code shows how to use this method.
    // save comboBox properties to a MemoryStream object.
    MemoryStream m = new MemoryStream();
    C1ComboBox comboBox = new C1ComboBox();
    comboBox.Items.Add(new C1ComboBoxItem("test1"));
    comboBox.Items.Add(new C1ComboBoxItem("test2"));
    comboBox.SaveLayout(m);
    // load from stream, only properties with Appearance category is loaded.
    C1ComboBox comboBox2 = new C1ComboBox();
    comboBox2.LoadLayout(m, LayoutType.Appearance);
    See Also