ControlPaint.DrawBorder3D Metoda

Definice

Nakreslí trojrozměrné ohraničení ovládacího prvku.

Přetížení

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

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a stranu a v rámci zadaných hranic ovládacího prvku.

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

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a v rámci zadaných hranic ovládacího prvku.

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

Nakreslí trojrozměrné ohraničení stylu na zadané grafické ploše a v rámci zadaných hranic ovládacího prvku.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem, na zadané grafické ploše a po stranách a v rámci zadaných hranic ovládacího prvku.

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a v rámci zadaných hranic ovládacího prvku.

DrawBorder3D(Graphics, Rectangle)

Nakreslí trojrozměrné ohraničení stylu na zadané grafické ploše a v rámci zadaných hranic ovládacího prvku.

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

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a stranu a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

x
Int32

Souřadnice x levého horního okraje obdélníku ohraničení.

y
Int32

Souřadnice y levého horního okraje obdélníku ohraničení.

width
Int32

Šířka obdélníku ohraničení.

height
Int32

Výška obdélníku ohraničení.

style
Border3DStyle

Jedna z Border3DStyle hodnot, které určují styl ohraničení.

sides
Border3DSide

Obdélník Border3DSide , na který chcete nakreslit ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Viz také

Platí pro

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

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

x
Int32

Souřadnice x levého horního okraje obdélníku ohraničení.

y
Int32

Souřadnice y levého horního okraje obdélníku ohraničení.

width
Int32

Šířka obdélníku ohraničení.

height
Int32

Výška obdélníku ohraničení.

style
Border3DStyle

Jedna z Border3DStyle hodnot, které určují styl ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Viz také

Platí pro

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

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu na zadané grafické ploše a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

x
Int32

Souřadnice x levého horního okraje obdélníku ohraničení.

y
Int32

Souřadnice y levého horního okraje obdélníku ohraničení.

width
Int32

Šířka obdélníku ohraničení.

height
Int32

Výška obdélníku ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Poznámky

Styl Border3DStyle.Etched se ve výchozím nastavení používá k nakreslení ohraničení.

Platí pro

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem, na zadané grafické ploše a po stranách a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

rectangle
Rectangle

Představuje Rectangle rozměry ohraničení.

style
Border3DStyle

Jedna z Border3DStyle hodnot, které určují styl ohraničení.

sides
Border3DSide

Jedna z Border3DSide hodnot, které určují stranu obdélníku, nakreslete ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Viz také

Platí pro

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu se zadaným stylem na zadanou grafickou plochu a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

rectangle
Rectangle

Představuje Rectangle rozměry ohraničení.

style
Border3DStyle

Jedna z Border3DStyle hodnot, které určují styl ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Viz také

Platí pro

DrawBorder3D(Graphics, Rectangle)

Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs
Zdroj:
ControlPaint.cs

Nakreslí trojrozměrné ohraničení stylu na zadané grafické ploše a v rámci zadaných hranic ovládacího prvku.

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)

Parametry

graphics
Graphics

Nakreslit Graphics .

rectangle
Rectangle

Představuje Rectangle rozměry ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Pokud chcete tento příklad spustit, vložte následující kód do formuláře, který importuje obory názvů System.Windows.Forms a System.Drawing. Ujistěte se, že je událost formuláře Paint přidružená k obslužné rutině události v tomto příkladu.

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

Poznámky

Styl Border3DStyle.Etched se ve výchozím nastavení používá k nakreslení ohraničení.

Viz také

Platí pro