public static void DrawRoundedRectangle(
this Graphics graphics,
Pen pen,
Rectangle bounds,
int cornerRadius
)<ExtensionAttribute>
Public Shared Sub DrawRoundedRectangle (
graphics As Graphics,
pen As Pen,
bounds As Rectangle,
cornerRadius As Integer
)public:
[ExtensionAttribute]
static void DrawRoundedRectangle(
Graphics^ graphics,
Pen^ pen,
Rectangle bounds,
int cornerRadius
)[<ExtensionAttribute>]
static member DrawRoundedRectangle :
graphics : Graphics *
pen : Pen *
bounds : Rectangle *
cornerRadius : int -> 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.