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