MobileForms Toolkit Documentation

GraphicsEx.DrawRoundedRectangle Method (Graphics, Pen, Int32, Int32, Int32, Int32, Int32, RoundedCornerStyles)

Draws a rounded rectangle specified by a coordinate pair, a width, and a height.

public static void DrawRoundedRectangle(
Graphics gr,
Pen pen,
int x,
int y,
int width,
int height,
int radius,
RoundedCornerStyles corners
);

Parameters

gr
Graphics to use.
pen
A Pen that determines the color, width, and style of the rectangle.
x
The x-coordinate of the upper-left corner of the rectangle to draw.
y
The y-coordinate of the upper-left corner of the rectangle to draw.
width
Width of the rectangle to draw.
height
Height of the rectangle to draw.
radius
Radius that determines the corners.
corners
RoundedCornerStyles that determines the characteristics of the rectangle.

See Also

GraphicsEx Class | Resco.Drawing Namespace | GraphicsEx.DrawRoundedRectangle Overload List