TUTORIAL后端与 Web 服务FETCHED

ASP.NET RadioButtonList RepeatDirection 属性

ASP.NET RadioButtonList RepeatDirection 属性 RadioButtonList 控件 定义和用法 RepeatDirection 属性用于获取或设置 RadioButtonList 中的项目是垂直显示还是水平显示。 语法 ... 一些内容 ... 属性 描述 mode 规定 RadioButtonList 中的项目的布局。可能的值: Horizontal - 水平显..

更新于 2026/7/16

教程详情页默认 noindex。

ASP.NET RadioButtonList RepeatDirection 属性


RadioButtonList 控件 RadioButtonList 控件

定义和用法

RepeatDirection 属性用于获取或设置 RadioButtonList 中的项目是垂直显示还是水平显示。

语法

<asp:RadioButtonList RepeatDirection="mode" runat="server">
...
一些内容
...
</asp:RadioButtonList >

属性 描述
mode 规定 RadioButtonList 中的项目的布局。

可能的值:

  • Horizontal - 水平显示
  • Vertical - 默认。垂直显示。


下面的例子设置了 RadioButtonList 控件的 RepeatDirection:

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">

...
一些内容
...

</asp:RadioButtonList>
</form>

RadioButtonList 控件 RadioButtonList 控件