Table of Contents

Method AddLine

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AddLine(Point, int, Orientation, LineStyle, Attribute?)

Adds a new length long line to the canvas starting at start.

Use positive length for the line to extend Right and negative for Left when Orientation is Horizontal.

Use positive length for the line to extend Down and negative for Up when Orientation is Vertical.

public void AddLine(Point start, int length, Orientation orientation, LineStyle style, Attribute? attribute = null)

Parameters

start Point

Starting point.

length int

The length of line. 0 for an intersection (cross or T). Positive for Down/Right. Negative for Up/Left.

orientation Orientation

The direction of the line.

style LineStyle

The style of line to use

attribute Attribute?

AddLine(StraightLine)

Adds a new line to the canvas

public void AddLine(StraightLine line)

Parameters

line StraightLine