DrawingContext.

DrawRectangle(IPen, Rect, float) Method

Summary

Draws the outline of a rectangle.
Namespace
Avalonia.Media
Containing Type
DrawingContext

Syntax

public void DrawRectangle(IPen pen, Rect rect, float cornerRadius = 0)

Parameters

Name Type Description
pen IPen The pen.
rect Rect The rectangle bounds.
cornerRadius float The corner radius.

Return Value

Type Description
void