ComponentOne Sparkline for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / SaveLayout Method / SaveLayout(String) Method
The file where the values of the layout properties will be saved.
Example

In This Topic
    SaveLayout(String) Method
    In This Topic
    Saves the control layout properties to the file.
    Syntax
    'Declaration
     
    Public Overloads Sub SaveLayout( _
       ByVal filename As System.String _
    ) 
    public void SaveLayout( 
       System.string filename
    )

    Parameters

    filename
    The file where the values of the layout properties will be saved.
    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);
    See Also