Table of Contents

Class VerticalLine

Namespace
ScottPlot.Plottables
Assembly
ScottPlot.dll

A line at a defined X position that spans the entire vertical space of the data area

public class VerticalLine : AxisLine, IPlottable, IRenderLast, IHasLine, IHasLegendText
Inheritance
VerticalLine
Implements
Inherited Members
Extension Methods

Constructors

VerticalLine()

public VerticalLine()

Properties

Maximum

public double Maximum { get; set; }

Property Value

double

Minimum

public double Minimum { get; set; }

Property Value

double

X

public double X { get; set; }

Property Value

double

Methods

GetAxisLimits()

Return the 2D area (in coordinate space) occupied by the data contained in this plottable

public override AxisLimits GetAxisLimits()

Returns

AxisLimits

IsUnderMouse(CoordinateRect)

public override bool IsUnderMouse(CoordinateRect rect)

Parameters

rect CoordinateRect

Returns

bool

Render(RenderPack)

Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.

public override void Render(RenderPack rp)

Parameters

rp RenderPack

RenderLast(RenderPack)

Plottables that implement this interface have a second render method that runs after the axes are drawn, allowing graphics to be placed on top of the axes.

public override void RenderLast(RenderPack rp)

Parameters

rp RenderPack