Latest web development tutorials

ASP.NET RadioButtonList TextAlign property

RadioButtonList control RadioButtonList control

Definition and Usage

Text alignment TextAlign property to get or set the RadioButtonList item text.

grammar

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

属性 描述
align 规定列表项的文本对齐方式。

可能的值:

  • Left
  • Right (默认)


Examples

The following examples set the TextAlign property RadioButtonList control is "Left":

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

Some content

</asp:RadioButtonList>
</form>

The demonstration >>

RadioButtonList control RadioButtonList control