| C1.Web.Wijmo.Controls.C1ComboBox Namespace > C1ComboBox Class > LoadLayout Method : LoadLayout(String) Method |
'DeclarationPublic Overloads Sub LoadLayout( _ ByVal filename As System.String _ )
public void LoadLayout( System.string filename )
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 C1ComboBox comboBox2 = new C1ComboBox(); comboBox2.LoadLayout(path);
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