Latest web development tutorials

ASP.NET CheckBoxList CellPadding property

The CheckBoxList The CheckBoxList

Definition and Usage

The number of pixels border and content CellPadding property to get or set the table cell between.

Note: This function is only set to "Table" is valid in RepeatLayout property.

grammar

<asp:CheckBoxList CellPadding="pixels" runat="server">
Some Content
</asp:CheckBoxList>

属性 描述
pixels 规定表格单元格的边框与内容之间的像素数。


Examples

The following examples set CellPadding property CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">

Some content

</asp:CheckBoxList>
</form>

The demonstration >>

The CheckBoxList The CheckBoxList