ASP.NET RadioButtonList RepeatLayout 屬性
定義和用法
RepeatDirection 屬性用於獲取或設置RadioButtonList 中的項目是垂直顯示還是水平顯示。
語法
<asp:RadioButtonList RepeatDirection="mode" runat="server">
Some Content
</asp:RadioButtonList >
Some Content
</asp:RadioButtonList >
属性 | 描述 |
---|---|
mode | 规定 RadioButtonList 中项目的布局方向。 可能的值:
|
實例
下面的實例設置了RadioButtonList 控件的RepeatDirection:
<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">
Some content
</asp:RadioButtonList>
</form>
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">
Some content
</asp:RadioButtonList>
</form>
演示實例»
RadioButtonList控件