ASP.NET CheckBox TextAlignProperty


Checkbox 控件CheckBox Control

Definition and Usage

The TextAlign property is used to set or return the alignment of the CheckBox text.

The default alignment is "right".

Syntax

<asp:CheckBox TextAlign="left|right" runat="server" />


Example

The following example sets the alignment of the CheckBox text:

<form runat="server">
<asp:CheckBox id="check1" runat="server"
Text="Make it so" TextAlign="left" />
</form>

Show Example »

Checkbox 控件CheckBox Control Other Extensions