ASP.NET RepeatDirection 属性

返回 ASP.NET RadioButtonList 控件参考手册

定义和用法

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

语法

<asp:RadioButtonList RepeatDirection="mode" runat="server">
some content
</asp:RadioButtonList >
属性 描述
mode

规定 RadioButtonList 中项目的布局方向。

可能的值:

  • Horizontal - 项目水平显示
  • Vertical - 默认。项目垂直显示。
这个在线速查手册由www.w卐△√卐△√3卐△√x卐△√卐△√u卐△√e.com提供,请勿盗用!

实例

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

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

Some content

</asp:RadioButtonList>
</form>

返回 ASP.NET RadioButtonList 控件参考手册