Udostępnij za pośrednictwem


ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Metoda

Definicja

Zwraca ścieżkę grafiki używaną do rysowania określonego zaokrąglonego prostokąta.

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

Parametry

rectangle
Rectangle

Element Rectangle , dla którego należy uzyskać ścieżkę graficzną.

radius
Int32

Liczba całkowita, która definiuje promień używany do rysowania zaokrąglonych narożników.

Zwraca

GraphicsPath

Obiekt GraphicsPath , który rysuje zaokrąglone ścieżki określonego prostokąta.

Wyjątki

rectangle parametr jest ustawiony na IsEmptywartość .

-lub- radius wartość jest mniejsza lub równa 0.

Uwagi

Metoda DrawRoundedRectangle używa GetRoundedRectanglePath metody w celu uzyskania ścieżki do rysowania.

Dotyczy