ASP.NET RadioButtonList TextAlign属性


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 控件 其他扩展