Aracılığıyla paylaş


RadioButtonList.RepeatLayout Özellik

Tanım

Listenin bir öğe, öğe, öğe veya öğe kullanılarak table işlenip işlenmeyeceğini belirten bir ulolspan değer alır veya ayarlar.

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

Özellik Değeri

Listenin bir table öğe, öğe, ul öğe ol veya öğe kullanılarak işlenip işlenmeyeceğini belirten bir span değer. Varsayılan değer: Table.

Öznitelikler

Özel durumlar

Radyo düğmesi düzeni değerlerden RepeatLayout biri değildir.

Örnekler

Aşağıdaki kod örneği, bir denetimin RepeatLayout öğelerini tabloda görüntülemek için özelliğinin RadioButtonList nasıl kullanılacağını gösterir.

<%@ 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>

Açıklamalar

Kullanılabilir seçenekler hakkında bilgi için numaralandırmaya RepeatLayout bakın.

Uyarı

ASP.NET 4 itibarıyla iki seçenek yenidir: OrderedList ve UnorderedList.

Bazı RepeatLayout ayarlar yatay düzene izin vermez. Daha fazla bilgi için numaralandırmaya RepeatLayout bakın.

Şunlara uygulanır

Ayrıca bkz.