ASP.NET RepeatDirection 屬性
定義和用法
RepeatDirection 屬性用于設(shè)置或返回 CheckBoxList 中的項(xiàng)目垂直顯示還是水平顯示。
語(yǔ)法
<asp:CheckBoxList RepeatDirection="mode" runat="server"> some content </asp:CheckBoxList >
屬性 | 描述 |
---|---|
mode |
規(guī)定 CheckBoxList 中項(xiàng)目的布局方向。 可能的值:
|
實(shí)例
下面的例子設(shè)置了 CheckBoxList 控件的 RepeatDirection:
<form runat="server">
<asp:CheckBoxList id="cb1" runat="server" RepeatDirection="Horizontal"
>
Some content
</asp:CheckBoxList>
</form>
實(shí)例
- 設(shè)置 CheckBoxList 控件的 RepeatDirection