ASP.NET CellSpacing Egenskab
Definition og brug
CellSpacing-eegenskaben bruges til at sætte eller returnere antallet af pixels mellem celler i CheckBoxList.
Bemærkninger:Denne funktion er kun gyldig, når RepeatLayout er sat til "Table" (standard).
Syntaks
<asp:CheckBoxList CellSpacing="pixels" runat="server"> Viser indhold </asp:CheckBoxList>
Egenskab | Beskrivelse |
---|---|
pixels | Definerer antallet af pixels mellem celler i tabellen. |
Eksempel
Følgende eksempel sætter CellSpacing-eegenskaben for CheckBoxList Kontrol:
<form runat="server"> <asp:CheckBoxList id="rb1" runat="server" CellSpacing="15"> Viser indhold </asp:CheckBoxList> </form>
Eksempel
- Indstil CellSpacing for CheckBoxList Kontrol