Latest web development tutorials

ASP.NET Calendar CaptionAlign property

Calendar Control Calendar Control

Definition and Usage

Alignment CaptionAlign property sets or returns the calendar title text.

grammar

<asp:Calendar Caption="text" CaptionAlign="align" runat="server" />

属性 描述
align 规定标题文本的对齐方式。

可能的值:

  • Top - 标题显示在日历顶部。文本居中。
  • Bottom - 标题显示在日历底部。文本居中。
  • Left - 标题显示在日历顶部。文本向左对齐。
  • Right - 标题显示在日历顶部。文本向右对齐。


Examples

The following example sets the calendar Caption property, the title to the bottom of the calendar arrangement:

<form runat="server">
<asp:Calendar id="cal1" runat="server"
Caption="This is a Caption text"
CaptionAlign="bottom" />
</form>

The demonstration >>

Calendar Control Calendar Control