ControlPaint.DrawBorder3D Yöntem

Tanım

Denetime üç boyutlu stil kenarlık çizer.

Aşırı Yüklemeler

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

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve tarafında ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

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

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

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

Belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırlar içinde üç boyutlu stil kenarlık çizer.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve kenarlarında ve bir denetimde belirtilen sınırlar içinde üç boyutlu bir stil kenarlık çizer.

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

DrawBorder3D(Graphics, Rectangle)

Belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırlar içinde üç boyutlu stil kenarlık çizer.

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

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve tarafında ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

x
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki x koordinatı.

y
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki y koordinatı.

width
Int32

Kenarlık dikdörtgeninin genişliği.

height
Int32

Kenarlık dikdörtgeninin yüksekliği.

style
Border3DStyle

Kenarlık Border3DStyle stilini belirten değerlerden biri.

sides
Border3DSide

Kenarlık Border3DSide çizecek dikdörtgenin.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Ayrıca bkz.

Şunlara uygulanır

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

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

x
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki x koordinatı.

y
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki y koordinatı.

width
Int32

Kenarlık dikdörtgeninin genişliği.

height
Int32

Kenarlık dikdörtgeninin yüksekliği.

style
Border3DStyle

Kenarlık Border3DStyle stilini belirten değerlerden biri.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Ayrıca bkz.

Şunlara uygulanır

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

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırlar içinde üç boyutlu stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

x
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki x koordinatı.

y
Int32

Kenarlık dikdörtgeninin sol üst köşesindeki y koordinatı.

width
Int32

Kenarlık dikdörtgeninin genişliği.

height
Int32

Kenarlık dikdörtgeninin yüksekliği.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Açıklamalar

Stil Border3DStyle.Etched varsayılan olarak kenarlık çizmek için kullanılır.

Şunlara uygulanır

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve kenarlarında ve bir denetimde belirtilen sınırlar içinde üç boyutlu bir stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

rectangle
Rectangle

Sınırın Rectangle boyutlarını temsil eden.

style
Border3DStyle

Kenarlık Border3DStyle stilini belirten değerlerden biri.

sides
Border3DSide

Kenarlık Border3DSide çizecek dikdörtgenin tarafını belirten değerlerden biri.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Ayrıca bkz.

Şunlara uygulanır

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen stile sahip, belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırların içinde üç boyutlu bir stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

rectangle
Rectangle

Sınırın Rectangle boyutlarını temsil eden.

style
Border3DStyle

Kenarlık Border3DStyle stilini belirten değerlerden biri.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Ayrıca bkz.

Şunlara uygulanır

DrawBorder3D(Graphics, Rectangle)

Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs
Kaynak:
ControlPaint.cs

Belirtilen grafik yüzeyinde ve bir denetimde belirtilen sınırlar içinde üç boyutlu stil kenarlık çizer.

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)

Parametreler

graphics
Graphics

Çizecek Graphics olan.

rectangle
Rectangle

Sınırın Rectangle boyutlarını temsil eden.

Örnekler

Aşağıdaki kod örneği yöntemlerden birinin DrawBorder3D kullanımını gösterir. Bu örneği çalıştırmak için aşağıdaki kodu System.Windows.Forms ve System.Drawing ad alanlarını içeri aktaran bir forma yapıştırın. Formun Paint olayının bu örnekteki olay işleyicisiyle ilişkilendirildiğinden emin olun.

// 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

Açıklamalar

Stil Border3DStyle.Etched varsayılan olarak kenarlık çizmek için kullanılır.

Ayrıca bkz.

Şunlara uygulanır