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