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

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

    Parameters

    filename
    The file where the values of layout properties will be loaded.
    layoutTypes
    The layout types to load.
    Example
    Following code shows how to use this method.
    C1ComboBox comboBox = new C1ComboBox();
    comboBox.Items.Add(new C1ComboBoxItem("test1"));
    comboBox.Items.Add(new C1ComboBoxItem("test2"));
    string path = "c:\comboBox.xml";
    // the comboBox is saved in comboBox.xml
    comboBox.SaveLayout(path);
                
    // load from comboBox.xml, only properties with Appearance category is loaded.
    C1ComboBox comboBox2 = new C1ComboBox();
    comboBox2.LoadLayout(path, LayoutType.Appearance);
    See Also