Calendar::CaptionAlign Property
Gets or sets the alignment of the text that is rendered as a caption for the calendar.
Assembly: System.Web (in System.Web.dll)
public: virtual property TableCaptionAlign CaptionAlign { TableCaptionAlign get (); void set (TableCaptionAlign value); }
<asp:Calendar CaptionAlign="TableCaptionAlign" />
Property Value
Type: System.Web.UI.WebControls::TableCaptionAlignA TableCaptionAlign value that indicates the alignment of the caption.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value specified is not one of the TableCaptionAlign values. |
This property determines where the caption appears in relation to the Calendar control. The default value is NotSet, which lets the browser determine where to align the caption. The following table explains the relationship between the TableCaptionAlign value and the appearance of the caption.
TableCaptionAlign value | Appearance |
|---|---|
Bottom | The caption appears at the bottom of the calendar, with the text centered. |
Left | The caption appears at the top of the calendar, with the text left-aligned. |
NotSet | The caption alignment is not set and is determined by the browser. |
Right | The caption appears at the top of the calendar, with the text right-aligned. |
Top | The caption appears at the top of the calendar with the text centered. |
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.