Version

SetStylePresets Method

Configure appearance related properties of the calendar using predefined values.
Syntax
'Declaration
 
Public Sub SetStylePresets( _
   ByVal preset As CalendarStylePreset, _
   ByVal nextPrevMonthFormat As CalendarPresetNextPrevFormat, _
   ByVal reset As Boolean _
) 
public void SetStylePresets( 
   CalendarStylePreset preset,
   CalendarPresetNextPrevFormat nextPrevMonthFormat,
   bool reset
)

Parameters

preset
Preset style. It includes colors, fonts, borders, images, etc.
nextPrevMonthFormat
Format of the buttons that perform navigation to the next-previous months. To keep old values, the "CalendarPresetNextPrevFormat.NoChange" value should be used.
reset
An option to reset old appearance-related properties.
Remarks

If the ViewState is enabled, then a call to this method will result in significant increase of the hidden-view-state-field size passed to the client.

To avoid increased size of the view-state,- the desired style-preset should be set at visual design.

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