RadioButtonList.CellPadding プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RadioButtonList.CellPadding プロパティの意味・解説 

RadioButtonList.CellPadding プロパティ

テーブル セルの境界と内容との間隔 (ピクセル単位) を取得または設定します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

解説解説

このプロパティは、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>
   
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「RadioButtonList.CellPadding プロパティ」の関連用語

RadioButtonList.CellPadding プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RadioButtonList.CellPadding プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS