Wizard.CellSpacing 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
셀 사이의 여백 크기를 가져오거나 설정합니다.
public:
virtual property int CellSpacing { int get(); void set(int value); };
public virtual int CellSpacing { get; set; }
member this.CellSpacing : int with get, set
Public Overridable Property CellSpacing As Integer
속성 값
픽셀 단위로 나타낸 셀 사이의 공간 크기입니다. 기본값은 0입니다.
예제
다음 코드 예제에서는 컨트롤의 CellPadding Wizard 레이아웃을 선언적으로 프로그래밍 하는 속성 및 CellSpacing 사용 하는 방법을 보여 줍니다.
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Wizard ID="Wizard1"
CellSpacing="20"
CellPadding="20"
BorderColor="Blue"
BorderWidth="2"
Runat="server">
<WizardSteps>
<asp:WizardStep ID="WizardStep1"
Title="Step 1"
Runat="server">
You are currently on step 1.
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2"
Title="Step 2"
Runat="server">
You are currently on step 2.
</asp:WizardStep>
<asp:WizardStep ID="WizardStep3"
Runat="server"
Title="Step 3">
You are currently on step 3.
</asp:WizardStep>
</WizardSteps>
<HeaderTemplate>
<b>Wizard CellPadding and CellSpacing Example</b>
</HeaderTemplate>
</asp:Wizard>
</form>
</body>
</html>
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Wizard ID="Wizard1"
CellSpacing="20"
CellPadding="20"
BorderColor="Blue"
BorderWidth="2"
Runat="server">
<WizardSteps>
<asp:WizardStep ID="WizardStep1"
Title="Step 1"
Runat="server">
You are currently on step 1.
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2"
Title="Step 2"
Runat="server">
You are currently on step 2.
</asp:WizardStep>
<asp:WizardStep ID="WizardStep3"
Runat="server"
Title="Step 3">
You are currently on step 3.
</asp:WizardStep>
</WizardSteps>
<HeaderTemplate>
<b>Wizard CellPadding and CellSpacing Example</b>
</HeaderTemplate>
</asp:Wizard>
</form>
</body>
</html>
설명
마법사 컨트롤에서 CellSpacing 인접한 셀 사이의 간격을 제어하려면 이 속성을 사용합니다. 이 간격이 세로 및 가로로 적용 됩니다.