ActivityDesignerPaint.DrawRoundedRectangle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.