RadioButtonList.CellPadding プロパティ
アセンブリ: System.Web (system.web.dll 内)

Public Overridable Property CellPadding As Integer
Dim instance As RadioButtonList Dim value As Integer value = instance.CellPadding instance.CellPadding = value
/** @property */ public int get_CellPadding () /** @property */ public void set_CellPadding (int value)
テーブル セルの境界と内容との間隔 (ピクセル単位)。既定値は -1 です。このプロパティが設定されていないことを示します。

このプロパティは、RepeatLayout プロパティが RepeatLayout.Table に設定されている場合にだけ適用されます。
このプロパティを使用して、セルの内容とセルの境界との間の余白を制御します。
指定した余白の量は、セルの 4 側面のすべてに追加されます。これにはテーブルの最も高いセルの高さと最も幅の広いセルの幅を使用します。生成されるセルのサイズは、テーブルのすべてのセルに均一に適用されます。それぞれのセルのサイズを指定することはできません。

CellPadding プロパティを使用して RadioButtonList コントロールのセルに 10 ピクセルの余白を追加する方法を次のコード例に示します。
<%@ Page Language="VB" AutoEventWireup="True" %> <asp:RadioButtonList id=RadioButtonList1 CellPadding = "10" 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>
<%@ Page Language="C#" AutoEventWireup="True" %> <asp:RadioButtonList id=RadioButtonList1 CellPadding = "10" 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>
<%@ Page Language="JScript" AutoEventWireup="True" %> <asp:RadioButtonList id=RadioButtonList1 CellPadding = "10" 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>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


RadioButtonList クラス
RadioButtonList メンバ
System.Web.UI.WebControls 名前空間
CellSpacing
その他の技術情報
RadioButton Web サーバー コントロールおよび RadioButtonList Web サーバー コントロール
Weblioに収録されているすべての辞書からRadioButtonList.CellPadding プロパティを検索する場合は、下記のリンクをクリックしてください。

- RadioButtonList.CellPadding プロパティのページへのリンク