Прочетете на английски Редактиране

Споделяне чрез


Graphics.FillRoundedRectangle Method

Definition

Overloads

FillRoundedRectangle(Brush, Rectangle, Size)

Fills the interior of a rounded rectangle with a Brush.

FillRoundedRectangle(Brush, RectangleF, SizeF)

Fills the interior of a rounded rectangle with a Brush.

FillRoundedRectangle(Brush, Rectangle, Size)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Fills the interior of a rounded rectangle with a Brush.

C#
public void FillRoundedRectangle(System.Drawing.Brush brush, System.Drawing.Rectangle rect, System.Drawing.Size radius);

Parameters

brush
Brush

The Brush to fill the rounded rectangle 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 10 (package-provided) и други версии
Продукт Версии
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10

FillRoundedRectangle(Brush, RectangleF, SizeF)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Fills the interior of a rounded rectangle with a Brush.

C#
public void FillRoundedRectangle(System.Drawing.Brush brush, System.Drawing.RectangleF rect, System.Drawing.SizeF radius);

Parameters

brush
Brush

The Brush to fill the rounded rectangle 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 10 (package-provided) и други версии
Продукт Версии
.NET 9 (package-provided), 10 (package-provided)
Windows Desktop 9, 10