RadioButtonList.RepeatLayout 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
table
요소, ul
요소, ol
요소 또는 span
요소를 사용하여 목록이 렌더링되는지 여부를 지정하는 값을 가져오거나 설정합니다.
public:
virtual property System::Web::UI::WebControls::RepeatLayout RepeatLayout { System::Web::UI::WebControls::RepeatLayout get(); void set(System::Web::UI::WebControls::RepeatLayout value); };
[System.ComponentModel.Bindable(true)]
public virtual System.Web.UI.WebControls.RepeatLayout RepeatLayout { get; set; }
public virtual System.Web.UI.WebControls.RepeatLayout RepeatLayout { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.RepeatLayout : System.Web.UI.WebControls.RepeatLayout with get, set
member this.RepeatLayout : System.Web.UI.WebControls.RepeatLayout with get, set
Public Overridable Property RepeatLayout As RepeatLayout
속성 값
table
요소, ul
요소, ol
요소 또는 span
요소를 사용하여 목록이 렌더링되는지 여부를 지정하는 값입니다. 기본값은 Table입니다.
- 특성
예외
라디오 단추 레이아웃이 RepeatLayout 값 중 하나가 아닌 경우
예제
다음 코드 예제에서는 테이블에 컨트롤의 RadioButtonList 항목을 표시 하는 속성을 사용 RepeatLayout 하는 방법을 보여 줍니다.
<%@ Page Language="C#" AutoEventWireup="True" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>RadioButtonList.RepeatLayout Example</title>
</head>
<body>
<asp:RadioButtonList id="RadioButtonList1"
RepeatColumns = "2"
RepeatDirection="Vertical"
RepeatLayout="Table"
runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="True" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>RadioButtonList.RepeatLayout Example</title>
</head>
<body>
<asp:RadioButtonList id="RadioButtonList1"
RepeatColumns = "2"
RepeatDirection="Vertical"
RepeatLayout="Table"
runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
</body>
</html>
설명
사용 가능한 옵션에 대한 자세한 내용은 열거형을 RepeatLayout 참조하세요.
참고
두 가지 옵션은 ASP.NET 4 OrderedList UnorderedList의 새로운 옵션입니다.
일부 RepeatLayout 설정은 가로 레이아웃을 허용하지 않습니다. 자세한 내용은 RepeatLayout 열거형을 참조하세요.