Loads control layout properties with specified types from the file.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
public void LoadLayout(
	string filename,
	LayoutType layoutTypes
)
Visual Basic (Declaration)
Public Sub LoadLayout ( _
	filename As String, _
	layoutTypes As LayoutType _
)

Parameters

filename
Type: System..::..String
The file where the values of layout properties will be loaded.
layoutTypes
Type: LayoutType
The layout types to load.

Implements

IC1SerializableLoadLayout(String, LayoutType)

Examples

Following code shows how to use this method.
Copy CodeC#
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