Condividi tramite


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

Struttura Rectangle per cui ottenere il percorso grafico.

radius
Int32

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

Restituisce

GraphicsPath

Classe GraphicsPath che disegna il percorso arrotondato del rettangolo specificato.

Eccezioni

rectangle è impostato su IsEmpty.

-oppure- radius è minore o uguale a 0.

Commenti

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

Si applica a