Table of Contents

Method AddDrawnRectangle

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

AddDrawnRectangle(Rectangle)

Reports that a rectangle has been drawn.

public void AddDrawnRectangle(Rectangle rect)

Parameters

rect Rectangle

The rectangle that was drawn, in screen-relative coordinates.

Remarks

When called from within OnDrawingContent(DrawContext?), ensure the rectangle is in screen-relative coordinates by using ViewportToScreen(in Rectangle) or similar methods.