ASP.NET Calendar CaptionAlignProperty
Calendar Control
Definition and Usage
The CaptionAlign property is used to set or return the alignment of the caption text of the calendar.
Syntax
<asp:Calendar Caption="text" CaptionAlign="align" runat="server" />
| Property | Description |
|---|---|
| align | Specifies the alignment of the caption text. Possible values:
|
Example
The following example sets the Caption property of the calendar and aligns the caption to the bottom of the calendar:
<form runat="server">
<asp:Calendar id="cal1" runat="server"
Caption="This is a Caption text"
CaptionAlign="bottom" />
</form>
<asp:Calendar id="cal1" runat="server"
Caption="This is a Caption text"
CaptionAlign="bottom" />
</form>
Demo Example »
Calendar Control Other Extensions