ASP.NET CellSpacing-eigenschap
Definitie en gebruik
De CellSpacing-eigenschap wordt gebruikt om het aantal pixels tussen tabelcellen in de CheckBoxList in te stellen of terug te geven.
Opmerking:Deze functie is alleen geldig wanneer RepeatLayout ingesteld is op "Table" (standaard).
Syntax
<asp:CheckBoxList CellSpacing="pixels" runat="server"> enkele inhoud </asp:CheckBoxList>
Eigenschap | Beschrijving |
---|---|
pixels | Stelt het aantal pixels tussen tabelcellen in. |
Voorbeeld
Het volgende voorbeeld stelt de CellSpacing-eigenschap in voor de CheckBoxList-knop:
<form runat="server"> <asp:CheckBoxList id="rb1" runat="server" CellSpacing="15"> Enkele inhoud </asp:CheckBoxList> </form>
Voorbeeld
- Instellen van CellSpacing voor CheckBoxList Knop