Class EventMarkerCommonBase<SYMBOL>
- Namespace
- LightningChartLib.WinForms.Charting.EventMarkers
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Event marker common base class for XY and polar chart.
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class EventMarkerCommonBase<SYMBOL> : DraggableObject, IChartNode, IDisposable, IHighlightingItem where SYMBOL : ChartNode
Type Parameters
SYMBOLtypeparam SYMBOL T:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1
- Inheritance
-
EventMarkerCommonBase<SYMBOL>
- Implements
- Derived
- Inherited Members
Constructors
EventMarkerCommonBase()
Constructor for Form editor.
public EventMarkerCommonBase()
EventMarkerCommonBase(IChartNode)
Constructor.
public EventMarkerCommonBase(IChartNode owner)
Parameters
ownerIChartNodeParent.
Properties
ClipInsideGraph
Marker is clipped inside graph area.
public bool ClipInsideGraph { get; set; }
Property Value
Label
Event marker title label.
public EventMarkerTitle Label { get; set; }
Property Value
Offset
Symbol offset from it's designated position.
public PointIntXY Offset { get; set; }
Property Value
Symbol
Marker symbol.
public SYMBOL Symbol { get; set; }
Property Value
- SYMBOL
Visible
Defines if event marker is visible or not.
public bool Visible { get; set; }
Property Value
Methods
CreateLabel()
Create label.
protected virtual void CreateLabel()
CreateOffset()
Create offset.
protected virtual void CreateOffset()
CreateSymbol()
Create symbol.
protected virtual void CreateSymbol()
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)
Defines if mouse is over an item.
public override bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
xintMouse X-coordinate.
yintMouse Y-coordinate.
useDIPboolUse DIP instead of pixels as parameters.
Returns
- bool
True if mouse 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.
SetItemDragPosition(int, int, bool)
Set item drag end position as axis values.
protected override void SetItemDragPosition(int x, int y, bool FinalPosition)
Parameters
xintparam x M:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1.SetItemDragPosition(System.Int32,System.Int32,System.Boolean) yintparam y M:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1.SetItemDragPosition(System.Int32,System.Int32,System.Boolean) FinalPositionboolparam FinalPosition M:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)
SetItemDragStartPosition()
Item center position when dragging starts.
protected override void SetItemDragStartPosition()