Version

LoadPreset(Stream,Boolean) Method

Loads a preset from a stream that sets properties affecting appearance, behavior or both.
Syntax
'Declaration
 
Public Overloads Sub LoadPreset( _
   ByVal stream As Stream, _
   ByVal reset As Boolean _
) 
public void LoadPreset( 
   Stream stream,
   bool reset
)

Parameters

stream
A Stream object that references a preset file. The stream will not be closed at the end of the call, and should be closed by the application afterwards.
reset
Whether to reset all properties on this control to their default values before applying the preset.
Remarks

If you experience seemingly arbitrary properties "bleeding" through based on the order in which you apply more than one preset, then you should consider specifying the reset option to clear properties (where possible) before applying subsequent presets.

The reset mechanism depends on control properties having a corresponding Reset method implemented for themselves. It cannot reset properties that do not have a Reset method defined.

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