Latest web development tutorials

ASP.NET RadioButtonList TextAlign 屬性

RadioButtonList 控件 RadioButtonList控件

定義和用法

TextAlign 屬性用於獲取或設置RadioButtonList 項目的文本的文本對齊方式。

語法

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

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

可能的值:

  • Left
  • Right (默认)


實例

下面的實例把RadioButtonList 控件中的TextAlign 屬性設置為"Left":

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

Some content

</asp:RadioButtonList>
</form>

演示實例»

RadioButtonList 控件 RadioButtonList控件