Table of Contents

Class StraightLine

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

A line between two points on a horizontal or vertical Orientation and a given style/color.

public class StraightLine
Inheritance
StraightLine
Inherited Members

Constructors

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

Creates a new instance of the StraightLine class.

Properties

Attribute

Gets or sets the color of the line.

Length

Gets or sets the length of the line.

Orientation

Gets or sets the orientation (horizontal or vertical) of the line.

Start

Gets or sets where the line begins.

Style

Gets or sets the line style of the line (e.g. dotted, double).

Methods

ToString()

Formats the Line as a string in (Start.X,Start.Y,Length,Orientation) notation.