ASP.NET RepeatDirection 属性
定義と用法
RepeatDirection 属性は、CheckBoxList 内のアイテムが垂直に表示されるか水平に表示されるかを設定または返します。
文法
<asp:CheckBoxList RepeatDirection="mode" runat="server"> some content </asp:CheckBoxList >
属性 | 説明 |
---|---|
mode |
CheckBoxList 内のアイテムのレイアウト方向を指定します。 可能な値:
|
例
以下の例では、CheckBoxList コントロールの RepeatDirection を設定しています:
<form runat="server"> <asp:CheckBoxList id="cb1" runat="server"> RepeatDirection="Horizontal"> Some content </asp:CheckBoxList> </form>
例
- CheckBoxList コントロールの RepeatDirection を設定する