Search Results for

    Show / Hide Table of Contents

    Class Axis

    Renders a continuous line with grid line ticks and labels
    Inheritance
    object
    Axis
    HorizontalAxis
    VerticalAxis
    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 abstract class Axis

    Constructors

    | Edit this page View Source

    Axis(Orientation)

    Populates base properties and sets the read only Orientation
    Declaration
    protected Axis(Orientation orientation)
    Parameters
    Type Name Description
    Orientation orientation

    Fields

    | Edit this page View Source

    LabelGetter

    Allows you to control what label text is rendered for a given Increment when ShowLabelsEvery is above 0
    Declaration
    public LabelGetterDelegate LabelGetter
    Field Value
    Type Description
    LabelGetterDelegate

    Properties

    | Edit this page View Source

    Increment

    Number of units of graph space between ticks on axis. 0 for no ticks
    Declaration
    public float Increment { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    Minimum

    The minimum axis point to show. Defaults to null (no minimum)
    Declaration
    public float? Minimum { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    Orientation

    Direction of the axis
    Declaration
    public Orientation Orientation { get; }
    Property Value
    Type Description
    Orientation
    | Edit this page View Source

    ShowLabelsEvery

    The number of Increment before an label is added. 0 = never show labels
    Declaration
    public uint ShowLabelsEvery { get; set; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    Text

    Displayed below/to left of labels (see Orientation). If text is not visible, check MarginBottom / MarginLeft
    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Visible

    True to render axis. Defaults to true
    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    DrawAxisLabel(GraphView, int, string)

    Draws a custom label text at screenPosition units along the axis (X or Y depending on Orientation)
    Declaration
    public abstract void DrawAxisLabel(GraphView graph, int screenPosition, string text)
    Parameters
    Type Name Description
    GraphView graph
    int screenPosition
    string text
    | Edit this page View Source

    DrawAxisLabels(GraphView)

    Draws labels and axis Increment ticks
    Declaration
    public abstract void DrawAxisLabels(GraphView graph)
    Parameters
    Type Name Description
    GraphView graph
    | Edit this page View Source

    DrawAxisLine(GraphView)

    Draws the solid line of the axis
    Declaration
    public abstract void DrawAxisLine(GraphView graph)
    Parameters
    Type Name Description
    GraphView graph
    | Edit this page View Source

    DrawAxisLine(GraphView, int, int)

    Draws a single cell of the solid line of the axis
    Declaration
    protected abstract void DrawAxisLine(GraphView graph, int x, int y)
    Parameters
    Type Name Description
    GraphView graph
    int x
    int y
    | Edit this page View Source

    Reset()

    Resets all configurable properties of the axis to default values
    Declaration
    public virtual void Reset()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX