ASP.NET RadioButtonList TextAlignProperty


RadioButtonList 控件RadioButtonList Control

Definition and Usage

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

Syntax

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

Property Description
align Specifies the text alignment of list items.

Possible values:

  • Left
  • Right (default)


Example

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

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

Some content

</asp:RadioButtonList>
</form>

Show example »

RadioButtonList 控件RadioButtonList Control Other extensions