ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) Metoda

Definice

Vrátí grafickou cestu použitou k kreslení zadaného zaobleného obdélníku.

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

Pro Rectangle který chcete získat grafickou cestu.

radius
Int32

Celé číslo, které definuje poloměr, který se má použít k nakreslení zaoblených rohů.

Návraty

GraphicsPath

A GraphicsPath , který nakreslí zaokrouhlenou cestu zadaného obdélníku.

Výjimky

rectangle je nastavena na IsEmptyhodnotu .

-nebo- radius je menší nebo rovno 0.

Poznámky

Metoda DrawRoundedRectangle používá GetRoundedRectanglePath k získání cesty k kreslení.

Platí pro