ControlPaint.DrawBorder3D Metoda

Definice

Nakreslí na ovládací prvek trojrozměrné ohraničení.

Přetížení

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

Nakreslí trojrozměrný styl ohraničení se zadaným stylem, na zadané grafické ploše a straně a v rámci zadaných mezí na ovládací prvek.

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

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

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

Nakreslí trojrozměrný styl ohraničení na zadanou grafickou plochu a v rámci zadaných hranic na ovládací prvek.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

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

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

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

DrawBorder3D(Graphics, Rectangle)

Nakreslí trojrozměrný styl ohraničení na zadanou grafickou plochu a v rámci zadaných hranic na ovládací prvek.

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

Nakreslí trojrozměrný styl ohraničení se zadaným stylem, na zadané grafické ploše a straně a v rámci zadaných mezí na ovládací prvek.

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

Na Graphics které se má kreslit.

x
Int32

Souřadnice x v levém horním rohu obdélníku ohraničení.

y
Int32

Souřadnice y v levém horním rohu 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čuje 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. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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)

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

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

Na Graphics které se má kreslit.

x
Int32

Souřadnice x v levém horním rohu obdélníku ohraničení.

y
Int32

Souřadnice y v levém horním rohu 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čuje styl ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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)

Nakreslí trojrozměrný styl ohraničení na zadanou grafickou plochu a v rámci zadaných hranic na ovládací prvek.

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

Na Graphics které se má kreslit.

x
Int32

Souřadnice x v levém horním rohu obdélníku ohraničení.

y
Int32

Souřadnice y v levém horním rohu 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. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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 vykreslení ohraničení.

Platí pro

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

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

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

Na Graphics které se má kreslit.

rectangle
Rectangle

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

style
Border3DStyle

Jedna z Border3DStyle hodnot, která určuje styl ohraničení.

sides
Border3DSide

Jedna z Border3DSide hodnot, která určuje stranu obdélníku, na které se má nakreslit ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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)

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

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

Na Graphics které se má kreslit.

rectangle
Rectangle

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

style
Border3DStyle

Jedna z Border3DStyle hodnot, která určuje styl ohraničení.

Příklady

Následující příklad kódu ukazuje použití jedné z DrawBorder3D metod. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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)

Nakreslí trojrozměrný styl ohraničení na zadanou grafickou plochu a v rámci zadaných hranic na ovládací prvek.

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

Na Graphics které se má kreslit.

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. Chcete-li spustit tento příklad, vložte následující kód do formuláře, který importuje System.Windows.Forms obory názvů a System.Drawing . Ujistěte se, že Paint je událost formuláře 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 vykreslení ohraničení.

Viz také

Platí pro