ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) 方法

定義

傳回用來繪製指定之圓角矩形的圖形路徑。

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

參數

rectangle
Rectangle

Rectangle,為其取得圖形路徑。

radius
Int32

整數,定義用來繪製圓弧角的半徑。

傳回

GraphicsPath

GraphicsPath,繪製指定矩形的圓角路徑。

例外狀況

rectangle 設定為 IsEmpty

-或- radius 小於或等於 0。

備註

DrawRoundedRectangle 方法會使用 GetRoundedRectanglePath 來取得要繪製的路徑。

適用於