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 包含 null 引用(Visual Basic 中的 Nothing)。

注解

DrawRoundedRectangle GetRoundedRectanglePath使用该方法获取要绘制的路径。

适用于