Loads the control layout properties with specified types from the stream.
Namespace:
C1.Web.UI.Controls.C1ComboBoxAssembly: C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)
Syntax
C# |
---|
public void LoadLayout( Stream stream, LayoutType layoutTypes ) |
Visual Basic (Declaration) |
---|
Public Sub LoadLayout ( _ stream As Stream, _ layoutTypes As LayoutType _ ) |
Parameters
- stream
- Type: System.IO..::..Stream
The stream where the values of the layout properties will be loaded.
- layoutTypes
- Type: LayoutType
The layout types to load.
Implements
IC1SerializableLoadLayout(Stream, LayoutType)Examples
Following code shows how to use this method.
Copy CodeC#
// 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, only properties with Appearance category is loaded. C1ComboBox comboBox2 = new C1ComboBox(); comboBox2.LoadLayout(m, LayoutType.Appearance); |