Version

LoadPreset(String,Boolean) Method

Sets properties on the control that effect Appearance, Behavior, or Both, based on the information in the predefined Preset File.
Syntax
'Declaration
 
Public Overloads Sub LoadPreset( _
   ByVal filePath As String, _
   ByVal reset As Boolean _
) 
public void LoadPreset( 
   string filePath,
   bool reset
)

Parameters

filePath
The aboslute path of the Preset File.
reset
Whether to reset all properties on the control before applying the preset.
Example
Me.WebControl1.LoadPreset(Me.Page.MapPath("./Onyx.xml"), True)
this.WebControl1.LoadPreset(this.Page.MapPath("./Onyx.xml"), true);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also