ASP.NET RepeatDirection 属性

定义和用法

RepeatDirection 属性用于设置或返回 CheckBoxList 中的项目垂直显示还是水平显示。

语法

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

规定 CheckBoxList 中项目的布局方向。

可能的值:

  • Horizontal - 项目水平显示
  • Vertical - 默认。项目垂直显示。

实例

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

<form runat="server">
<asp:CheckBoxList id="cb1" runat="server" RepeatDirection="Horizontal">

Some content

</asp:CheckBoxList>
</form>

实例

设置 CheckBoxList 控件的 RepeatDirection
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南