RadioButtonList.RepeatColumns Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Denetimde RadioButtonList görüntülenecek sütun sayısını alır veya ayarlar.
public:
virtual property int RepeatColumns { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public virtual int RepeatColumns { get; set; }
public virtual int RepeatColumns { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.RepeatColumns : int with get, set
member this.RepeatColumns : int with get, set
Public Overridable Property RepeatColumns As Integer
Özellik Değeri
içinde RadioButtonListgörüntülenecek sütun sayısı. Bu özelliğin ayarlanmadığını gösteren varsayılan değer 0'dır.
- Öznitelikler
Özel durumlar
Sütun sayısı negatif bir değere ayarlanır.
Örnekler
Aşağıdaki kod örneği, bir denetimin RepeatColumns öğelerini iki sütunda 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.RepeatColumns Example</title>
</head>
<body>
<asp:RadioButtonList id="RadioButtonList1"
RepeatLayout="Table"
RepeatColumns = "2"
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.RepeatColumns Example</title>
</head>
<body>
<asp:RadioButtonList id="RadioButtonList1"
RepeatLayout="Table"
RepeatColumns = "2"
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
RepeatLayout özelliği olarak Tableayarlandığında, denetimdeki RadioButtonList öğeleri görüntüleyen sütunların sayısını belirtmek için bu özelliği kullanabilirsiniz. Bu özellik ayarlanmadıysa, RadioButtonList denetim listedeki tüm öğeleri tek bir sütunda görüntüler.
Şunlara uygulanır
Ayrıca bkz.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin