Class LineView
A straight line control either horizontal or vertical
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui.Views
Assembly: Terminal.Gui.dll
Syntax
public class LineView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
LineView()
Creates a horizontal line
Declaration
public LineView()
LineView(Orientation)
Creates a horizontal or vertical line based on
orientation
Declaration
public LineView(Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
Orientation | orientation |
Properties
EndingAnchor
The rune to display at the end of the line (right end of horizontal line or bottom end of vertical).
If not specified then LineRune is used
Declaration
public Rune? EndingAnchor { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Rune> |
LineRune
The symbol to use for drawing the line
Declaration
public Rune LineRune { get; set; }
Property Value
Type | Description |
---|---|
System.Rune |
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.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation |
StartingAnchor
The rune to display at the start of the line (left end of horizontal line or top end of vertical)
If not specified then LineRune is used
Declaration
public Rune? StartingAnchor { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Rune> |
Methods
Redraw(Rect)
Draws the line including any starting/ending anchors
Declaration
public override void Redraw(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Rect | bounds |
Overrides
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize