編集

次の方法で共有


ActivityDesignerPaint.DrawRoundedRectangle Method

Definition

Draws a rounded rectangle on the activity designer surface.

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)

Parameters

graphics
Graphics

The Graphics on which to draw the rectangle.

drawingPen
Pen

The Pen to draw the rectangle.

rectangle
Rectangle

The Rectangle that defines the bounds of the rounded rectangle.

radius
Int32

The integer value of the radius to use for the rounded edges.

Exceptions

graphics or drawingPen contains a null reference (Nothing in Visual Basic).

Remarks

DrawRoundedRectangle uses the GetRoundedRectanglePath method to obtain the path to draw.

Applies to