Skip to content

IGraphicsContext.DrawRectangle method (1 of 3)

Draws a rectangle outline using a pen.

public void DrawRectangle(Rect rect, Pen pen)

IGraphicsContext.DrawRectangle method (2 of 3)

Section titled “IGraphicsContext.DrawRectangle method (2 of 3)”

Draws a rectangle outline.

public void DrawRectangle(Rect rect, Color color, double thickness = 1m)

IGraphicsContext.DrawRectangle method (3 of 3)

Section titled “IGraphicsContext.DrawRectangle method (3 of 3)”

Draws a rectangle with the stroke inset within rect.

public void DrawRectangle(Rect rect, Color color, double thickness, bool strokeInset)