ActivityDesignerPaint.DrawRoundedRectangle Méthode

Définition

Dessine un rectangle arrondi sur l’aire du concepteur d’activités.

public:
 static void DrawRoundedRectangle(System::Drawing::Graphics ^ graphics, System::Drawing::Pen ^ drawingPen, System::Drawing::Rectangle rectangle, int radius);
public static void DrawRoundedRectangle(System.Drawing.Graphics graphics, System.Drawing.Pen drawingPen, System.Drawing.Rectangle rectangle, int radius);
static member DrawRoundedRectangle : System.Drawing.Graphics * System.Drawing.Pen * System.Drawing.Rectangle * int -> unit
Public Shared Sub DrawRoundedRectangle (graphics As Graphics, drawingPen As Pen, rectangle As Rectangle, radius As Integer)

Paramètres

graphics
Graphics

Graphics Sur lequel dessiner le rectangle.

drawingPen
Pen

Pour Pen dessiner le rectangle.

rectangle
Rectangle

Qui Rectangle définit les limites du rectangle arrondi.

radius
Int32

Valeur entière du rayon à utiliser pour les bords arrondis.

Exceptions

graphics ou drawingPen contient une référence Null (Nothing dans Visual Basic).

Remarques

DrawRoundedRectangle utilise la GetRoundedRectanglePath méthode pour obtenir le chemin d’accès à dessiner.

S’applique à