ASP.NET RepeatDirection 属性

定義と使用法

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 コントロールの RepeatDirection を設定する