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 A 會畫出指定矩形的圓滑路徑。

例外狀況

rectangle 設定為 IsEmpty

-或-

radius 小於或等於0。

備註

DrawRoundedRectangle 方法用於 GetRoundedRectanglePath 取得繪圖路徑。

適用於