ActivityDesignerPaint.DrawRoundedRectangle 方法

定義

在活動設計器表面繪製一個圓角矩形。

public:
 static void DrawRoundedRectangle(System::Drawing::Graphics ^ graphics, System::Drawing::Pen ^ drawingPen, System::Drawing::Rectangle rectangle, int radius);
public static void DrawRoundedRectangle(System.Drawing.Graphics graphics, System.Drawing.Pen drawingPen, System.Drawing.Rectangle rectangle, int radius);
static member DrawRoundedRectangle : System.Drawing.Graphics * System.Drawing.Pen * System.Drawing.Rectangle * int -> unit
Public Shared Sub DrawRoundedRectangle (graphics As Graphics, drawingPen As Pen, rectangle As Rectangle, radius As Integer)

參數

graphics
Graphics

畫出矩形的那個 Graphics

drawingPen
Pen

然後 Pen 畫出矩形。

rectangle
Rectangle

Rectangle 定義了圓角矩形的界限。

radius
Int32

半徑的整數值,用於圓角邊。

例外狀況

graphicsdrawingPen 包含一個空參考(Nothing 在 Visual Basic 中)。

備註

DrawRoundedRectangle 使用該 GetRoundedRectanglePath 方法取得繪製路徑。

適用於