DrawingContext.

FillRectangle(IBrush, Rect, float) Method

Summary

Draws a filled rectangle.
Namespace
Avalonia.Media
Containing Type
DrawingContext

Syntax

public void FillRectangle(IBrush brush, Rect rect, float cornerRadius = 0)

Parameters

Name Type Description
brush IBrush The brush.
rect Rect The rectangle bounds.
cornerRadius float The corner radius.

Return Value

Type Description
void