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
Properties
AllowMoveByUser
Allows moving the constant line by user.
public bool AllowMoveByUser { get; set; }
Property Value
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
LineStyle
Line style
public LineStyle LineStyle { get; set; }
Property Value
Title
Series title
public SeriesTitle Title { get; set; }
Property Value
Value
Constant line value
public double Value { get; set; }
Property Value
Methods
Clear()
Does nothing on this series type.
public override void Clear()
Construct()
Create members.
protected override void Construct()
CreateTitle()
protected override void CreateTitle()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue 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
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
contextStreamingContextContext
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