ICanvas.FillRectangle(Single, Single, Single, Single) Method

Definition

Draws a filled rectangle onto the canvas.

C#
public void FillRectangle(float x, float y, float width, float height);

Parameters

x
Single

Starting x coordinate.

y
Single

Starting y coordinate.

width
Single

Width of the rectangle.

height
Single

Height of the rectangle.

Applies to

Product Versions
.NET MAUI 8, 9