Version

Preset Method (CalendarStylePresets)

Configure properties of the target according to a predifined style.

Note: all properties of the target related to the appearance will be reset.

If this method is called at run time, then the size of the hidden ViewState field passed to the client will be significantly increased.

Syntax
'Declaration
 
Public Shared Sub Preset( _
   ByVal target As WebCalendar, _
   ByVal style As CalendarStylePreset, _
   ByVal nextPrevFormat As CalendarPresetNextPrevFormat, _
   ByVal reset As Boolean _
) 
public static void Preset( 
   WebCalendar target,
   CalendarStylePreset style,
   CalendarPresetNextPrevFormat nextPrevFormat,
   bool reset
)

Parameters

target
Instance of the WebCalendar, which properties will be modified.
style
Preset style.
nextPrevFormat
Format for next/previous month buttons.
reset
True: reset old properties related to appearance.
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