Search Results for

    Show / Hide Table of Contents

    Class LineCanvas

    Facilitates box drawing and line intersection detection and rendering. Does not support diagonal lines.
    Inheritance
    System.Object
    LineCanvas
    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)
    System.Object.ToString()
    Namespace: Terminal.Gui.Graphs
    Assembly: Terminal.Gui.dll
    Syntax
    public class LineCanvas

    Methods

    | Improve this Doc View Source

    AddLine(Point, Int32, 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.
    Declaration
    public void AddLine(Point from, int length, Orientation orientation, BorderStyle style)
    Parameters
    Type Name Description
    Point from Starting point.
    System.Int32 length Length of line. 0 for a dot. Positive for Down/Right. Negative for Up/Left.
    Orientation orientation Direction of the line.
    BorderStyle style The style of line to use
    | Improve this Doc View Source

    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.
    Declaration
    public Dictionary<Point, Rune> GenerateImage(Rect inArea)
    Parameters
    Type Name Description
    Rect inArea
    Returns
    Type Description
    System.Collections.Generic.Dictionary<Point, Rune> Mapping of all the points within inArea to line or intersection runes which should be drawn there.
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX