ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳繪製指定圓角矩形的圖形路徑。
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
參數
- radius
- Int32
一個整數,用來定義用來繪製圓角的半徑。
傳回
GraphicsPath A 會畫出指定矩形的圓滑路徑。
例外狀況
備註
此 DrawRoundedRectangle 方法用於 GetRoundedRectanglePath 取得繪圖路徑。