ASP.NET CheckBoxList TextAlignProperty


CheckBoxList 控件CheckBoxList Control

Definition and Usage

The TextAlign property is used to get or set the text alignment of the text of CheckBoxList items.

Syntax

<asp:CheckBoxList TextAlign="align" runat="server">
Some Content
</asp:CheckBoxList>

Property Description
align Specifies the text alignment for list items.

Possible values:

  • Left
  • Right (default)


Example

The following example sets the TextAlign property to "Left" in the CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" TextAlign="Left">

Some content

</asp:CheckBoxList>
</form>

Show Example »

CheckBoxList 控件CheckBoxList Control Other Extensions