Table of Contents

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

SYMBOL
typeparam 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

owner IChartNode

Parent.

Properties

ClipInsideGraph

Marker is clipped inside graph area.

public bool ClipInsideGraph { get; set; }

Property Value

bool

Label

Event marker title label.

public EventMarkerTitle Label { get; set; }

Property Value

EventMarkerTitle

Offset

Symbol offset from it's designated position.

public PointIntXY Offset { get; set; }

Property Value

PointIntXY

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

bool

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

disposing bool

True 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

x int

Mouse X-coordinate.

y int

Mouse Y-coordinate.

useDIP bool

Use 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

context StreamingContext

Context.

SetItemDragPosition(int, int, bool)

Set item drag end position as axis values.

protected override void SetItemDragPosition(int x, int y, bool FinalPosition)

Parameters

x int
param x M:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)
y int
param y M:LightningChartLib.WinForms.Charting.EventMarkers.EventMarkerCommonBase`1.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)
FinalPosition bool
param 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()