ASP.NET CellSpacing 속성

정의 및 사용법

CellSpacing 속성은 CheckBoxList에서 테이블 셀 간의 픽셀 수를 설정하거나 반환합니다.

주의사항:이 함수는 RepeatLayout이 "Table"로 설정되었을 때만 유효합니다. (기본값)

문법

<asp:CheckBoxList CellSpacing="pixels" runat="server">
some content
</asp:CheckBoxList>
속성 설명
pixels 테이블 셀 간의 픽셀 수를 정의합니다.

예제

아래의 예제는 CheckBoxList 컨트롤의 CellSpacing 속성을 설정합니다:

<form runat="server">
<asp:CheckBoxList id="rb1">
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>

예제

CheckBoxList 컨트롤의 CellSpacing 설정