ControlPaint.DrawBorder3D 메서드

정의

컨트롤에 3차원 스타일의 테두리를 그립니다.

오버로드

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide)

지정된 그래픽 표면 및 지정된 범위 내에 지정된 스타일 및 방향으로 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle)

지정된 그래픽 표면의 지정된 범위 내에 지정된 스타일로 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32)

지정된 그래픽 표면의 지정된 범위 내에 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

지정된 그래픽 표면 및 지정된 범위 내에 지정된 스타일 및 방향으로 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

지정된 그래픽 표면의 지정된 범위 내에 지정된 스타일로 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Rectangle)

지정된 그래픽 표면의 지정된 범위 내에 컨트롤의 3차원 스타일 테두리를 그립니다.

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide)

지정된 그래픽 표면 및 지정된 범위 내에 지정된 스타일 및 방향으로 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::Border3DStyle style, System::Windows::Forms::Border3DSide sides);
public static void DrawBorder3D (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.Border3DStyle style, System.Windows.Forms.Border3DSide sides);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.Border3DStyle * System.Windows.Forms.Border3DSide -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, style As Border3DStyle, sides As Border3DSide)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

x
Int32

테두리 사각형 왼쪽 위의 x좌표입니다.

y
Int32

테두리 사각형 왼쪽 위의 y좌표입니다.

width
Int32

테두리 사각형의 너비입니다.

height
Int32

테두리 사각형의 높이입니다.

style
Border3DStyle

테두리 스타일을 지정하는 Border3DStyle 값 중 하나입니다.

sides
Border3DSide

테두리를 그릴 사각형의 Border3DSide입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

추가 정보

적용 대상

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle)

지정된 그래픽 표면의 지정된 범위 내에 지정된 스타일로 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::Border3DStyle style);
public static void DrawBorder3D (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.Border3DStyle style);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.Border3DStyle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, style As Border3DStyle)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

x
Int32

테두리 사각형 왼쪽 위의 x좌표입니다.

y
Int32

테두리 사각형 왼쪽 위의 y좌표입니다.

width
Int32

테두리 사각형의 너비입니다.

height
Int32

테두리 사각형의 높이입니다.

style
Border3DStyle

테두리 스타일을 지정하는 Border3DStyle 값 중 하나입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

추가 정보

적용 대상

DrawBorder3D(Graphics, Int32, Int32, Int32, Int32)

지정된 그래픽 표면의 지정된 범위 내에 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height);
public static void DrawBorder3D (System.Drawing.Graphics graphics, int x, int y, int width, int height);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

x
Int32

테두리 사각형 왼쪽 위의 x좌표입니다.

y
Int32

테두리 사각형 왼쪽 위의 y좌표입니다.

width
Int32

테두리 사각형의 너비입니다.

height
Int32

테두리 사각형의 높이입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

설명

스타일은 Border3DStyle.Etched 기본적으로 테두리를 그리는 데 사용됩니다.

적용 대상

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

지정된 그래픽 표면 및 지정된 범위 내에 지정된 스타일 및 방향으로 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::Border3DStyle style, System::Windows::Forms::Border3DSide sides);
public static void DrawBorder3D (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.Border3DStyle style, System.Windows.Forms.Border3DSide sides);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Border3DStyle * System.Windows.Forms.Border3DSide -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle, style As Border3DStyle, sides As Border3DSide)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

rectangle
Rectangle

테두리의 크기를 나타내는 Rectangle입니다.

style
Border3DStyle

테두리 스타일을 지정하는 Border3DStyle 값 중 하나입니다.

sides
Border3DSide

테두리를 그릴 사각형의 가장자리를 지정하는 Border3DSide 값 중 하나입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

추가 정보

적용 대상

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

지정된 그래픽 표면의 지정된 범위 내에 지정된 스타일로 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::Border3DStyle style);
public static void DrawBorder3D (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.Border3DStyle style);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Border3DStyle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle, style As Border3DStyle)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

rectangle
Rectangle

테두리의 크기를 나타내는 Rectangle입니다.

style
Border3DStyle

테두리 스타일을 지정하는 Border3DStyle 값 중 하나입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

추가 정보

적용 대상

DrawBorder3D(Graphics, Rectangle)

지정된 그래픽 표면의 지정된 범위 내에 컨트롤의 3차원 스타일 테두리를 그립니다.

public:
 static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle);
public static void DrawBorder3D (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

rectangle
Rectangle

테두리의 크기를 나타내는 Rectangle입니다.

예제

다음 코드 예제에서는 메서드 중 하나를 사용하는 방법을 보여 줍니다 DrawBorder3D . 이 예제를 실행하려면 및 System.Drawing 네임스페이스를 가져오는 양식에 System.Windows.Forms 다음 코드를 붙여넣습니다. 양식의 이벤트가 이 예제의 Paint 이벤트 처리기와 연결되어 있는지 확인합니다.

// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   Rectangle borderRectangle = this->ClientRectangle;
   borderRectangle.Inflate(  -10, -10 );
   ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional 
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{

    Rectangle borderRectangle = this.ClientRectangle;
    borderRectangle.Inflate(-10, -10);
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, 
        Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional 
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles MyBase.Paint

    Dim borderRectangle As Rectangle = Me.ClientRectangle
    borderRectangle.Inflate(-10, -10)
    ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
        Border3DStyle.Raised)
End Sub

설명

스타일은 Border3DStyle.Etched 기본적으로 테두리를 그리는 데 사용됩니다.

추가 정보

적용 대상