TUTORIALBackendFETCHED

ASP.NET RadioButtonList TextAlign 属性

ASP.NET RadioButtonList TextAlign 属性 RadioButtonList 控件 定义和用法 TextAlign 属性用于获取或设置 RadioButtonList 项目的文本的文本对齐方式。 语法 <asp:RadioButtonList TextAlign='align' runat='server'>Some Content..

Updated 7/16/2026

Tutorial detail pages default to noindex.

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 控件