ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Méthode

Définition

Retourne le chemin d’accès graphique utilisé pour dessiner le rectangle arrondi spécifié.

public:
 static System::Drawing::Drawing2D::GraphicsPath ^ GetRoundedRectanglePath(System::Drawing::Rectangle rectangle, int radius);
public static System.Drawing.Drawing2D.GraphicsPath GetRoundedRectanglePath(System.Drawing.Rectangle rectangle, int radius);
static member GetRoundedRectanglePath : System.Drawing.Rectangle * int -> System.Drawing.Drawing2D.GraphicsPath
Public Shared Function GetRoundedRectanglePath (rectangle As Rectangle, radius As Integer) As GraphicsPath

Paramètres

rectangle
Rectangle

Rectangle Pour lequel obtenir le chemin d’accès graphique.

radius
Int32

Entier qui définit le rayon à utiliser pour dessiner les angles arrondis.

Retours

Qui GraphicsPath dessine le chemin arrondi du rectangle spécifié.

Exceptions

rectangle a la valeur IsEmpty.

- ou -

radius est inférieur ou égal à 0.

Remarques

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

S’applique à