ControlPaint.DrawBorder3D Méthode

Définition

Dessine une bordure à trois dimensions sur un contrôle.

Surcharges

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

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface et les côtés graphiques spécifiés et dans les limites spécifiées sur un contrôle.

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

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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

Dessine une bordure à trois dimensions sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface et les côtés graphiques spécifiés et dans les limites spécifiées sur un contrôle.

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

DrawBorder3D(Graphics, Rectangle)

Dessine une bordure à trois dimensions sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface et les côtés graphiques spécifiés et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

x
Int32

Coordonnée x du coin supérieur gauche du rectangle de bordure.

y
Int32

Coordonnée y du coin supérieur gauche du rectangle de bordure.

width
Int32

Largeur du rectangle de bordure.

height
Int32

Hauteur du rectangle de bordure.

style
Border3DStyle

Une des valeurs de Border3DStyle qui spécifie le style de la bordure.

sides
Border3DSide

Border3DSide du rectangle sur lequel dessiner la bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Voir aussi

S’applique à

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

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

x
Int32

Coordonnée x du coin supérieur gauche du rectangle de bordure.

y
Int32

Coordonnée y du coin supérieur gauche du rectangle de bordure.

width
Int32

Largeur du rectangle de bordure.

height
Int32

Hauteur du rectangle de bordure.

style
Border3DStyle

Une des valeurs de Border3DStyle qui spécifie le style de la bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Voir aussi

S’applique à

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

Dessine une bordure à trois dimensions sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

x
Int32

Coordonnée x du coin supérieur gauche du rectangle de bordure.

y
Int32

Coordonnée y du coin supérieur gauche du rectangle de bordure.

width
Int32

Largeur du rectangle de bordure.

height
Int32

Hauteur du rectangle de bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Remarques

Le Border3DStyle.Etched style est utilisé par défaut pour dessiner la bordure.

S’applique à

DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface et les côtés graphiques spécifiés et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

rectangle
Rectangle

Rectangle représentant les dimensions de la bordure.

style
Border3DStyle

Une des valeurs de Border3DStyle qui spécifie le style de la bordure.

sides
Border3DSide

Une des valeurs de Border3DSide qui spécifie le côté du rectangle sur lequel dessiner la bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Voir aussi

S’applique à

DrawBorder3D(Graphics, Rectangle, Border3DStyle)

Dessine une bordure à trois dimensions avec le style spécifié, sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

rectangle
Rectangle

Rectangle représentant les dimensions de la bordure.

style
Border3DStyle

Une des valeurs de Border3DStyle qui spécifie le style de la bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Voir aussi

S’applique à

DrawBorder3D(Graphics, Rectangle)

Dessine une bordure à trois dimensions sur la surface graphique spécifiée et dans les limites spécifiées sur un contrôle.

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)

Paramètres

graphics
Graphics

Graphics sur lequel dessiner.

rectangle
Rectangle

Rectangle représentant les dimensions de la bordure.

Exemples

L’exemple de code suivant illustre l’utilisation de l’une DrawBorder3D des méthodes . Pour exécuter cet exemple, collez le code suivant dans un formulaire qui importe les System.Windows.Forms espaces de noms et .System.Drawing Vérifiez que l’événement du Paint formulaire est associé au gestionnaire d’événements dans cet exemple.

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

Remarques

Le Border3DStyle.Etched style est utilisé par défaut pour dessiner la bordure.

Voir aussi

S’applique à