ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Metodo

Definizione

Restituisce il percorso grafico utilizzato per disegnare il rettangolo arrotondato specificato.

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

Parametri

rectangle
Rectangle

Oggetto Rectangle per il quale ottenere il percorso grafico.

radius
Int32

Intero che definisce il raggio da utilizzare per disegnare gli angoli arrotondati.

Valori restituiti

Oggetto GraphicsPath che disegna il percorso arrotondato del rettangolo specificato.

Eccezioni

rectangle è impostato su IsEmpty.

oppure

radius è minore o uguale a 0.

Commenti

Il DrawRoundedRectangle metodo utilizza GetRoundedRectanglePath per ottenere il percorso da disegnare.

Si applica a