自强学堂
自强学堂:学习、分享、让你更强!
.NET 参考手册HTMLCSSJAVASCRIPTJQUERYSQLPHPBOOTSTRAPANGULARXML
 

ASP.NET RadioButtonList RepeatLayout 属性

RadioButtonList 控件 RadioButtonList 控件

定义和用法

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

语法

<asp:RadioButtonList RepeatDirection="mode" runat="server">
Some Content
</asp:RadioButtonList >

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

可能的值:

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


实例

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

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

Some content

</asp:RadioButtonList>
</form>

演示实例 »

RadioButtonList 控件 RadioButtonList 控件