ASP.NET RepeatLayout 属性

返回 ASP.NET CheckBoxList 控件参考手册

定义和用法

RepeatLayout 属性用于设置或获取如何显示在 CheckBoxList 中的项目。

语法

<asp:CheckBoxList RepeatLayout="mode" runat="server">
some content
</asp:CheckBoxList >
属性 描述
mode

规定 CheckBoxList 中项目的布局。

可能的值:

  • Flow - 项目不显示在表格中
  • Table - 默认。项目显示在表格中
这个在线速查手册由www.w♥『』♥『』3♥『』x♥『』♥『』u♥『』e.com提供,请勿盗用!

实例

下面的例子设置了 CheckBoxList 控件的 RepeatLayout:

<form runat="server">
<asp:CheckBoxList id="cb1" runat="server" RepeatLayout="Flow">

Some content

</asp:CheckBoxList>
</form>

返回 ASP.NET CheckBoxList 控件参考手册