ASP.NET CheckBoxList TextAlignProperty
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>
Some Content
</asp:CheckBoxList>
| Property | Description |
|---|---|
| align | Specifies the text alignment for list items. Possible values:
|
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>
<asp:CheckBoxList id="rb1"
runat="server" TextAlign="Left">
Some content
</asp:CheckBoxList>
</form>
Show Example »
CheckBoxList Control Other Extensions