Summary
Draws a rectangle with the specified Brush and Pen.
- Namespace
- Avalonia
.Platform - Containing Type
- IDrawingContextImpl
Syntax
void DrawRectangle(IBrush brush, IPen pen, RoundedRect rect, BoxShadows boxShadows = default(BoxShadows))
Remarks
The brush and the pen can both be null. If the brush is null, then no fill is performed.
If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.
Parameters
Name | Type | Description |
---|---|---|
brush | IBrush | The brush used to fill the rectangle, or null for no fill. |
pen | IPen | The pen used to stroke the rectangle, or null for no stroke. |
rect | RoundedRect | The rectangle bounds. |
boxShadows | BoxShadows | Box shadow effect parameters |
Return Value
Type | Description |
---|---|
void |