Table of Contents

Method GetCellMapWithRegion

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

GetCellMapWithRegion()

Evaluates the lines and returns both the cell map and a Region encompassing the drawn cells. This is more efficient than calling GetCellMap() and GetRegion(Dictionary<Point, Cell?>) separately as it builds both in a single pass through the canvas bounds.

public (Dictionary<Point, Cell?> CellMap, Region Region) GetCellMapWithRegion()

Returns

(Dictionary<Point, Cell?> CellMap, Region Region)

A tuple containing the cell map and the Region of drawn cells