ControlPaint.DrawBorder3D Método

Definición

Dibuja un borde de estilo tridimensional en un control.

Sobrecargas

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

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica y lado especificados y dentro de los límites especificados en un control.

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

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica especificada y dentro de los límites especificados de un control.

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

Dibuja un borde de estilo tridimensional en la superficie gráfica especificada y dentro de los límites especificados de un control.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica y lados especificados y dentro de los límites especificados en un control.

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica especificada y dentro de los límites especificados de un control.

DrawBorder3D(Graphics, Rectangle)

Dibuja un borde de estilo tridimensional en la superficie gráfica especificada y dentro de los límites especificados de un control.

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

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica y lado especificados y dentro de los límites especificados en un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

x
Int32

Coordenada x del ángulo superior izquierdo del rectángulo del borde.

y
Int32

Coordenada y del ángulo superior izquierdo del rectángulo del borde.

width
Int32

Ancho del rectángulo del borde.

height
Int32

Alto del rectángulo del borde.

style
Border3DStyle

Uno de los valores de Border3DStyle que especifica el estilo del borde.

sides
Border3DSide

Border3DSide del rectángulo donde se va a dibujar el borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Consulte también

Se aplica a

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

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica especificada y dentro de los límites especificados de un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

x
Int32

Coordenada x del ángulo superior izquierdo del rectángulo del borde.

y
Int32

Coordenada y del ángulo superior izquierdo del rectángulo del borde.

width
Int32

Ancho del rectángulo del borde.

height
Int32

Alto del rectángulo del borde.

style
Border3DStyle

Uno de los valores de Border3DStyle que especifica el estilo del borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Consulte también

Se aplica a

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

Dibuja un borde de estilo tridimensional en la superficie gráfica especificada y dentro de los límites especificados de un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

x
Int32

Coordenada x del ángulo superior izquierdo del rectángulo del borde.

y
Int32

Coordenada y del ángulo superior izquierdo del rectángulo del borde.

width
Int32

Ancho del rectángulo del borde.

height
Int32

Alto del rectángulo del borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Comentarios

El Border3DStyle.Etched estilo se usa de forma predeterminada para dibujar el borde.

Se aplica a

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica y lados especificados y dentro de los límites especificados en un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

rectangle
Rectangle

Rectangle que representa las dimensiones del borde.

style
Border3DStyle

Uno de los valores de Border3DStyle que especifica el estilo del borde.

sides
Border3DSide

Uno de los valores de Border3DSide que especifica el lado del rectángulo en el que se va a dibujar el borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Consulte también

Se aplica a

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Dibuja un borde de estilo tridimensional con el estilo especificado, en la superficie gráfica especificada y dentro de los límites especificados de un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

rectangle
Rectangle

Rectangle que representa las dimensiones del borde.

style
Border3DStyle

Uno de los valores de Border3DStyle que especifica el estilo del borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Consulte también

Se aplica a

DrawBorder3D(Graphics, Rectangle)

Dibuja un borde de estilo tridimensional en la superficie gráfica especificada y dentro de los límites especificados de un control.

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)

Parámetros

graphics
Graphics

Graphics donde se va a dibujar.

rectangle
Rectangle

Rectangle que representa las dimensiones del borde.

Ejemplos

En el ejemplo de código siguiente se muestra el uso de uno de los DrawBorder3D métodos . Para ejecutar este ejemplo, pegue el código siguiente en un formulario que importe los System.Windows.Forms espacios de nombres y System.Drawing . Asegúrese de que el evento del Paint formulario está asociado al controlador de eventos de este ejemplo.

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

Comentarios

El Border3DStyle.Etched estilo se usa de forma predeterminada para dibujar el borde.

Consulte también

Se aplica a