Table of Contents

Class LegendAnnotation

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

A box containing symbol definitions e.g. meanings for colors in a graph. The 'Key' to the graph

public class LegendAnnotation : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IAnnotation
Inheritance
LegendAnnotation
Implements
Inherited Members

Constructors

LegendAnnotation()

Creates a new empty legend at the empty screen coordinates.

LegendAnnotation(Rectangle)

Creates a new empty legend at the given screen coordinates.

Properties

BeforeSeries

Returns false i.e. Legends render after series

Methods

AddEntry(GraphCellToRender, string)

Adds an entry into the legend. Duplicate entries are permissible

OnClearingViewport()

Called when the Viewport is to be cleared.

OnDrawingText()

Called when the Text of the View is to be drawn.

Render(GraphView)

Draws the Legend and all entries into the area within Viewport