Table of Contents

Class ConstantLine

Namespace
LightningChartLib.WinForms.Charting.SeriesXY
Assembly
LightningChart.WinForms.Charting.NET4.dll

Constant line is a horizontal line attached to a Y-axis value. It is drawn from left to right having full width of the graph.

public class ConstantLine : SeriesBaseXY, IChartNode, IDisposable, IHighlightingItem
Inheritance
ConstantLine
Implements
Inherited Members

Constructors

ConstantLine()

Constructor for Form designer list editor.

public ConstantLine()

ConstantLine(ViewXY, AxisX, AxisY)

Constructor

public ConstantLine(ViewXY owner, AxisX axisX, AxisY axisY)

Parameters

owner ViewXY

Parent.

axisX AxisX

X-axis you want to bind.

axisY AxisY

Y-axis you want to bind.

Properties

AllowMoveByUser

Allows moving the constant line by user.

public bool AllowMoveByUser { get; set; }

Property Value

bool

Remarks

AllowUserInteraction must be true for AllowMoveByUser to take effect

Behind

Is the constant line behind lineseries or on front of it.

public bool Behind { get; set; }

Property Value

bool

LineStyle

Line style

public LineStyle LineStyle { get; set; }

Property Value

LineStyle

Title

Series title

public SeriesTitle Title { get; set; }

Property Value

SeriesTitle

Value

Constant line value

public double Value { get; set; }

Property Value

double

Methods

Clear()

Does nothing on this series type.

public override void Clear()

Construct()

Create members.

protected override void Construct()

CreateTitle()

summary M:LightningChartLib.WinForms.Charting.SeriesXY.ConstantLine.CreateTitle
protected override void CreateTitle()

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed, otherwise false.

IsPositionOver(int, int, bool)

Is position over item.

public override bool IsPositionOver(int x, int y, bool useDIP = false)

Parameters

x int

x-coordinate

y int

y-coordinate

useDIP bool

Use DIP instead of pixels as parameters

Returns

bool

true if position is over item, false otherwise

OnDeserialized(StreamingContext)

OnDeserialized is called just after the object has been deserialized

[OnDeserialized]
protected void OnDeserialized(StreamingContext context)

Parameters

context StreamingContext

Context

SetItemDragStartPosition()

Item center position when dragging starts.

protected override void SetItemDragStartPosition()

SetProperCursor()

Set proper cursor.

public override void SetProperCursor()

Events

ValueChanged

Value has been changed.

public event ConstantLine.ValueChangedEventHandler ValueChanged

Event Type

ConstantLine.ValueChangedEventHandler