Search Results for

    Show / Hide Table of Contents

    Class TextAnnotation

    Displays text at a given position (in screen space or graph space)
    Inheritance
    object
    TextAnnotation
    Implements
    IAnnotation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Terminal.Gui.Graphs
    Assembly: Terminal.Gui.dll
    Syntax
    public class TextAnnotation : IAnnotation

    Properties

    | Edit this page View Source

    BeforeSeries

    True to add text before plotting series. Defaults to false
    Declaration
    public bool BeforeSeries { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    GraphPosition

    The location in graph space to draw the Text. This annotation will only show if the point is in the current viewable area of the graph presented in the GraphView
    Declaration
    public PointF GraphPosition { get; set; }
    Property Value
    Type Description
    PointF
    | Edit this page View Source

    ScreenPosition

    The location on screen to draw the Text regardless of scroll/zoom settings. This overrides GraphPosition if specified.
    Declaration
    public Point? ScreenPosition { get; set; }
    Property Value
    Type Description
    Point?
    | Edit this page View Source

    Text

    Text to display on the graph
    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    DrawText(GraphView, int, int)

    Draws the Text at the given coordinates with truncation to avoid spilling over of the graph
    Declaration
    protected void DrawText(GraphView graph, int x, int y)
    Parameters
    Type Name Description
    GraphView graph
    int x Screen x position to start drawing string
    int y Screen y position to start drawing string
    | Edit this page View Source

    Render(GraphView)

    Draws the annotation
    Declaration
    public void Render(GraphView graph)
    Parameters
    Type Name Description
    GraphView graph

    Implements

    IAnnotation
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX