Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Calendar CaptionAlign Property

ASP.NET Calendar CaptionAlign Property


Calendar Control Calendar control


Definition and Usage

The CaptionAlign property is used to set or return the alignment of the calendar caption text.

Syntax

/>

property Description
align Specifies the alignment of the caption text.

Possible values:

  • Top - The caption is displayed at the top of the calendar. The text is centered.
  • Bottom - The caption is displayed at the bottom of the calendar. The text is centered.
  • Left - The caption is displayed at the top of the calendar. The text is left-aligned.
  • Right - The caption is displayed at the top of the calendar. The text is right-aligned.
  • |

    Example

    The following example sets the Caption property in the calendar, aligning the caption to the bottom of the calendar:

    Caption="This is a Caption text"

    CaptionAlign="bottom" />

    Demo Example »


    Calendar Control Calendar control