Table of Contents

Class Line

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Draws a single line using the LineStyle specified by BorderStyle.

public class Line : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation
Inheritance
Line
Implements
Inherited Members

Constructors

Line()

Constructs a Line object.

Properties

Orientation

The direction of the line. If you change this you will need to manually update the Width/Height of the control to cover a relevant area based on the new direction.

Methods

OnDrawingContent()

Called when the View's content is to be drawn. The default implementation does nothing.

OnOrientationChanged(Orientation)

Called when Orientation has changed.

SetBorderStyle(LineStyle)

Sets the BorderStyle of the view to the specified value.

Events

OrientationChanged

Raised when Orientation has changed.

OrientationChanging

Raised when Orientation is changing. Can be cancelled.