Auto Format Dialog Box (Calendar Control)

 

The Auto Format dialog box enables you to select a predefined set of colors, border styles, and other settings (which are collectively referred to as a scheme) and apply them to a Calendar Web server control.

When you select a scheme, the scheme's settings are applied to properties of the control. Different schemes make different settings, but a typical set of properties that are set by a scheme is as follows:

  • BackColor

  • BorderColor

  • BorderStyle

  • BorderWidth

  • CellPadding

  • Font.Name, Font.Size

  • ForeColor

  • Gridlines

  • NextPrevFormat

  • Width

In some schemes, settings are also made for the style objects that are associated with the control. For example, a scheme might set the BackColor property of the TodayDayStyle object.

You can edit the settings after applying a scheme.

To open the Auto Format dialog box

  1. In Visual Web Developer, open or create an ASP.NET Web page and then switch to Design view.

  2. From the Standard node of the Toolbox drag a Calendar control onto the page.

    The Tasks window appears automatically.

  3. In the Calendar Tasks list, click Auto Format.

    The Auto Format dialog box opens.

  4. From the left pane of the dialog box, choose the scheme that you want to use. The scheme will be previewed in the right pane.

Tasks

UI Elements

  • Select a scheme
    Select a scheme by name or select Remove Formatting to restore the default values for the properties that were set by the scheme.

    Note

    If you choose Remove Formatting, all of the properties affected by the scheme are reset, even if you changed the settings after applying this option.

  • Preview
    Displays a sample of what the calendar will look like when the scheme is applied.

See Also

Calendar Web Server Control Overview