Graphics.DrawRoundedRectangle Method

Definition

Overloads

DrawRoundedRectangle(Pen, Rectangle, Size)

Draws the outline of the specified rounded rectangle.

DrawRoundedRectangle(Pen, RectangleF, SizeF)

Draws the outline of the specified rounded rectangle.

DrawRoundedRectangle(Pen, Rectangle, Size)

Source:
Graphics.cs
Source:
Graphics.cs

Draws the outline of the specified rounded rectangle.

public void DrawRoundedRectangle (System.Drawing.Pen pen, System.Drawing.Rectangle rect, System.Drawing.Size radius);

Parameters

pen
Pen

The Pen to draw the outline with.

rect
Rectangle

The bounds of the rounded rectangle.

radius
Size

The radius width and height used to round the corners of the rectangle.

Applies to

.NET 9 (package-provided) en Windows Desktop 9
Product Versies
.NET 9 (package-provided)
Windows Desktop 9

DrawRoundedRectangle(Pen, RectangleF, SizeF)

Source:
Graphics.cs
Source:
Graphics.cs

Draws the outline of the specified rounded rectangle.

public void DrawRoundedRectangle (System.Drawing.Pen pen, System.Drawing.RectangleF rect, System.Drawing.SizeF radius);

Parameters

pen
Pen

The Pen to draw the outline with.

rect
RectangleF

The bounds of the rounded rectangle.

radius
SizeF

The radius width and height used to round the corners of the rectangle.

Applies to

.NET 9 (package-provided) en Windows Desktop 9
Product Versies
.NET 9 (package-provided)
Windows Desktop 9