Table of Contents

Class LineCanvas

Namespace
Terminal.Gui.Graphs
Assembly
Terminal.Gui.dll

Facilitates box drawing and line intersection detection and rendering. Does not support diagonal lines.

public class LineCanvas
Inheritance
LineCanvas
Inherited Members

Methods

AddLine(Point, int, Orientation, BorderStyle)

Add a new line to the canvas starting at from. Use positive length for Right and negative for Left when Orientation is Horizontal. Use positive length for Down and negative for Up when Orientation is Vertical.

GenerateImage(Rect)

Evaluate all currently defined lines that lie within inArea and map that shows what characters (if any) should be rendered at each point so that all lines connect up correctly with appropriate intersection symbols.