Edit

Share via


GraphicsPath.AddRoundedRectangle Method

Definition

Overloads

AddRoundedRectangle(Rectangle, Size)

Adds a rounded rectangle to this path.

AddRoundedRectangle(RectangleF, SizeF)

Adds a rounded rectangle to this path.

AddRoundedRectangle(Rectangle, Size)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Adds a rounded rectangle to this path.

C#
public void AddRoundedRectangle(System.Drawing.Rectangle rect, System.Drawing.Size radius);

Parameters

rect
Rectangle

The bounds of the rectangle to add.

radius
Size

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10

AddRoundedRectangle(RectangleF, SizeF)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

Adds a rounded rectangle to this path.

C#
public void AddRoundedRectangle(System.Drawing.RectangleF rect, System.Drawing.SizeF radius);

Parameters

rect
RectangleF

The bounds of the rectangle to add.

radius
SizeF

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10