Table of Contents

Class TextAnnotation

Namespace
Terminal.Gui.Graphs
Assembly
Terminal.Gui.dll

Displays text at a given position (in screen space or graph space)

public class TextAnnotation : IAnnotation
Inheritance
TextAnnotation
Implements
Inherited Members

Properties

BeforeSeries

True to add text before plotting series. Defaults to false

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

ScreenPosition

The location on screen to draw the Text regardless of scroll/zoom settings. This overrides GraphPosition if specified.

Text

Text to display on the graph

Methods

DrawText(GraphView, int, int)

Draws the Text at the given coordinates with truncation to avoid spilling over of the graph

Render(GraphView)

Draws the annotation