ASP.NET CellPadding 属性

定義と用法

CellPadding 属性はセルの枠と内容の間のピクセル数を設定または返します。

注記:RepeatLayout 属性が "Table" に設定されている場合にのみ有効です。

文法

<asp:RadioButtonList CellPadding="ピクセル" runat="server">
some content
</asp:RadioButtonList >
属性 説明
ピクセル セルの枠と内容の間のピクセル数を指定します。

以下の例では、RadioButtonList コントロールの CellPadding 属性を設定しています:

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:RadioButtonList>
</form>

RadioButtonList コントロールの CellPadding 属性を設定する