Table of Contents

Class SeriesEventMarker

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

Event marker that can be attached to a series.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class SeriesEventMarker : EventMarkerCommonBase<SeriesMarkerPointShapeStyle>, IChartNode, IDisposable, IHighlightingItem
Inheritance
SeriesEventMarker
Implements
Inherited Members

Constructors

SeriesEventMarker()

Constructor for Form editor.

public SeriesEventMarker()

SeriesEventMarker(SeriesBaseXY)

Series event marker constructor.

public SeriesEventMarker(SeriesBaseXY owner)

Parameters

owner SeriesBaseXY
param owner M:LightningChartLib.WinForms.Charting.EventMarkers.SeriesEventMarker.#ctor(LightningChartLib.WinForms.Charting.SeriesXY.SeriesBaseXY)

SeriesEventMarker(SeriesBaseXY, SeriesMarkerPointShapeStyle, SeriesEventMarkerVerticalPosition, double, double, EventMarkerTitle)

Series event marker constructor.

public SeriesEventMarker(SeriesBaseXY owner, SeriesMarkerPointShapeStyle symbol, SeriesEventMarkerVerticalPosition verticalPos, double xValue, double yValue, EventMarkerTitle label)

Parameters

owner SeriesBaseXY

Parent.

symbol SeriesMarkerPointShapeStyle

Symbol.

verticalPos SeriesEventMarkerVerticalPosition

Vertical position.

xValue double

X value.

yValue double

Y value.

label EventMarkerTitle

Label.

Properties

HorizontalPosition

Horizontal position.

public SeriesEventMarkerHorizontalPosition HorizontalPosition { get; set; }

Property Value

SeriesEventMarkerHorizontalPosition

VerticalPosition

Vertical position.

public SeriesEventMarkerVerticalPosition VerticalPosition { get; set; }

Property Value

SeriesEventMarkerVerticalPosition

Remarks

You can use SeriesEventMarkerVerticalPosition.TrackSeries only with series who implement ITrackable.

XValue

X value of marker.

public double XValue { get; set; }

Property Value

double

YValue

Y value of marker.

public double YValue { get; set; }

Property Value

double

Methods

CreateSymbol()

Create symbol.

protected override 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.

GetOwnerSeries()

Get the series who owns this marker.

public SeriesBaseXY GetOwnerSeries()

Returns

SeriesBaseXY

Owner series.

IsPositionOver(int, int, bool)

Is mouse over 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.SeriesEventMarker.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)
y int
param y M:LightningChartLib.WinForms.Charting.EventMarkers.SeriesEventMarker.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)
FinalPosition bool
param FinalPosition M:LightningChartLib.WinForms.Charting.EventMarkers.SeriesEventMarker.SetItemDragPosition(System.Int32,System.Int32,System.Boolean)

ToString()

Item to string.

public override string ToString()

Returns

string

String.

Events

PositionChanged

Event marker X or Y value has been changed.

public event SeriesEventMarker.PositionChangedEventHandler PositionChanged

Event Type

SeriesEventMarker.PositionChangedEventHandler