ComponentOne Wijmo Open for Juice UI
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / LoadLayout Method / LoadLayout(Stream) Method
The stream where the values of layout properties will be loaded.
Example

In This Topic
    LoadLayout(Stream) Method
    In This Topic
    Load control layout properties from the stream.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadLayout( _
       ByVal stream As System.IO.Stream _
    ) 
    public void LoadLayout( 
       System.IO.Stream stream
    )

    Parameters

    stream
    The stream where the values of layout properties will be loaded.
    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.
    C1ComboBox comboBox2 = new C1ComboBox();
    comboBox2.LoadLayout(m);
    See Also