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