
定义和用法
RepeatLayout 属性用于获取或设置如何显示在 CheckBoxList 中的项目。
语法
<asp:CheckBoxList RepeatLayout="
mode" runat="server">
Some Content
</asp:CheckBoxList >
Some Content
</asp:CheckBoxList >
属性 | 描述 |
---|---|
mode | 规定 CheckBoxList 中项目的布局。 可能的值:
|
实例
下面的实例设置了 CheckBoxList 控件的 RepeatLayout:
<form runat="server"> <asp:CheckBoxList id="cb1" runat="server" RepeatLayout="Flow"> Some content </asp:CheckBoxList> </form>
