ASP.NET RadioButtonList RepeatDirection属性
RadioButtonList 控件
定義と用法
RepeatDirection プロパティは、RadioButtonList 内の項目を垂直に表示するか水平に表示するかを取得または設定するために使用します。
语法
<asp:RadioButtonList RepeatDirection="mode" runat="server">
Some Content
</asp:RadioButtonList >
Some Content
</asp:RadioButtonList >
| 属性 | 描述 |
|---|---|
| mode | RadioButtonList 内の項目のレイアウト方向を指定します。 可能な値:
|
实例
以下の例では、RadioButtonList コントロールの RepeatDirection を設定しています:
<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">
Some content
</asp:RadioButtonList>
</form>
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">
Some content
</asp:RadioButtonList>
</form>
演示实例 »
RadioButtonList 控件 其他扩展