DrawingContextFillRectangle Method

Draws a filled rectangle.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void FillRectangle(
	IBrush brush,
	Rect rect,
	float cornerRadius = 0f
)

Parameters

brush  IBrush
The brush.
rect  Rect
The rectangle bounds.
cornerRadius  Single  (Optional)
The corner radius.

See Also