public static void DrawRoundedRectangle(
this Graphics graphics,
Pen pen,
RectangleF bounds,
float cornerRadius
)
<ExtensionAttribute>
Public Shared Sub DrawRoundedRectangle (
graphics As Graphics,
pen As Pen,
bounds As RectangleF,
cornerRadius As Single
)
public:
[ExtensionAttribute]
static void DrawRoundedRectangle(
Graphics^ graphics,
Pen^ pen,
RectangleF bounds,
float cornerRadius
)
[<ExtensionAttribute>]
static member DrawRoundedRectangle :
graphics : Graphics *
pen : Pen *
bounds : RectangleF *
cornerRadius : float32 -> unit
If cornerRadius is negative, the absolute value will be used. If it is greater than the half of the smaller side of the bounding rectangle, it will be adjusted to the half of the smaller side, so the result will be an oval shape. If the cornerRadius is 0, a simple rectangle will be drawn.