Table of Contents

Method AddDrawnRegion

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

AddDrawnRegion(Region)

Reports that a region has been drawn.

public void AddDrawnRegion(Region region)

Parameters

region Region

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

Remarks

This method is useful for reporting non-rectangular drawn areas, which is important for proper transparency support with Transparent.

When called from within OnDrawingContent(DrawContext?), ensure the region is in screen-relative coordinates by using ViewportToScreen(in Rectangle) to convert each rectangle in the region.