ASP.NET CheckBoxList CellPaddingPropiedad
Control CheckBoxList
Definición y uso
La propiedad CellPadding se utiliza para obtener o establecer el número de píxeles entre el borde de las celdas de la tabla y su contenido.
Nota:Esta función solo es válida cuando la propiedad RepeatLayout está establecida en "Table".
Sintaxis
<asp:CheckBoxList CellPadding="pixels" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
| Propiedad | Descripción |
|---|---|
| pixels | Especifica el número de píxeles entre el borde de las celdas de la tabla y su contenido. |
Ejemplo
El siguiente ejemplo establece la propiedad CellPadding del control CheckBoxList:
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
Ver ejemplo en vivo »
Control CheckBoxList Otras extensiones