ASP.NET TextAlign Property
Definition and Usage
The TextAlign property is used to get or set the text alignment of the CheckBoxList item text.
Syntax
<asp:CheckBoxList TextAlign="align" runat="server"> some content </asp:CheckBoxList>
Property | Description |
---|---|
align |
Specify the text alignment for list items. Possible Values:
|
Example
The following example sets the TextAlign property of the CheckBoxList control to "Left":
<form runat="server"> <asp:CheckBoxList id="rb1" runat="server"> TextAlign="Left"> Some content </asp:CheckBoxList> </form>
Example
- Set the TextAlign Property of CheckBoxList Control