Class HorizontalSpan
- Namespace
- ScottPlot.Plottables
- Assembly
- ScottPlot.dll
A horizontal span marks the full vertical range between two horizontal values
public class HorizontalSpan : AxisSpan, IHasLine, IHasFill, IHasLegendText, IPlottable
- Inheritance
-
HorizontalSpan
- Implements
- Inherited Members
- Extension Methods
Properties
Left
public double Left { get; set; }
Property Value
Right
public double Right { get; set; }
Property Value
X1
public double X1 { get; set; }
Property Value
X2
public double X2 { get; set; }
Property Value
XRange
public CoordinateRange XRange { get; }
Property Value
Methods
DragTo(AxisSpanUnderMouse, Coordinates)
public override void DragTo(AxisSpanUnderMouse spanUnderMouse, Coordinates mouseNow)
Parameters
spanUnderMouse
AxisSpanUnderMousemouseNow
Coordinates
GetAxisLimits()
Return the 2D area (in coordinate space) occupied by the data contained in this plottable
public override AxisLimits GetAxisLimits()
Returns
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
UnderMouse(CoordinateRect)
public override AxisSpanUnderMouse? UnderMouse(CoordinateRect rect)
Parameters
rect
CoordinateRect