PocketPlanner Programmer's Guide

Calendar.ApplyTheme Method (Theme, Boolean)

See Also

Applies the specified theme to the calendar, optionally resetting all current settings.

Namespace: MindFusion.Scheduling.Compact
Assembly: PocketPlanner

 Syntax

C#

public void ApplyTheme (
    Theme theme,
    bool reset
)

Visual Basic

Public Sub ApplyTheme ( _
    theme As Theme, _
    reset As Boolean _
)

 Parameters

theme
A Theme object containing appearance settings.
reset
Specifies whether to reset the settings.

 Example

The following example attaches the Windows2003 theme to a calendar. The example assumes that calendar already references an existing Calendar object.

C#

calendar.ApplyTheme(MindFusion.Scheduling.Compact.Theme.Windows2003, false);

Visual Basic

calendar.ApplyTheme(MindFusion.Scheduling.Compact.Theme.Windows2003, False)

 See Also