Skip to main content

DrawRectangle(IPen, Rect, Single) Method

Draws the outline of a rectangle.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters

  IPen
The pen.
  Rect
The rectangle bounds.
  Single  (Optional)
The corner radius.

See Also

Reference

DrawingContext Class
DrawRectangle Overload
Avalonia.Media Namespace