Table of Contents

Class PolygonSeries

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

Polygon series. Points must be in clockwise order.

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

Constructors

PolygonSeries()

Constructor.

public PolygonSeries()

PolygonSeries(ViewXY, AxisX, AxisY)

Constructor.

public PolygonSeries(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

Antialias

Antialias area draw.

public bool Antialias { get; set; }

Property Value

bool

Behind

Draw behind series.

public bool Behind { get; set; }

Property Value

bool

Border

Border style.

public LineStyle Border { get; set; }

Property Value

LineStyle

BorderVisible

Show border.

public bool BorderVisible { get; set; }

Property Value

bool

CursorTrackEnabled

Cursor tracking enabled.

public bool CursorTrackEnabled { get; set; }

Property Value

bool

Fill

Polygon fill.

public Fill Fill { get; set; }

Property Value

Fill

IntersectionsAllowed

Intersections of polygon lines is allowed.

public bool IntersectionsAllowed { get; set; }

Property Value

bool

Points

Series points.

public PointDouble2D[] Points { get; set; }

Property Value

PointDouble2D[]

SimpleHighlightColor

Simple highlight color when user interactive device is over.

public Color SimpleHighlightColor { get; set; }

Property Value

Color

Statistics

Statistics of the line series

public LineSeriesStat Statistics { get; }

Property Value

LineSeriesStat

Title

Series title.

public PolygonSeriesTitle Title { get; set; }

Property Value

PolygonSeriesTitle

Methods

Clear()

Clear all data.

public override void Clear()

Construct()

Create members.

protected override void Construct()

CreateTitle()

summary M:LightningChartLib.WinForms.Charting.SeriesXY.PolygonSeries.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.

GetMinMaxValues(out double, out double, out double, out double)

Get minimum and maximum X and Y values.

public bool GetMinMaxValues(out double xMin, out double xMax, out double yMin, out double yMax)

Parameters

xMin double

X minimum.

xMax double

X maximum.

yMin double

Y minimum.

yMax double

Y maximum.

Returns

bool

True if point count is greater than 0

GetTitleText()

summary M:LightningChartLib.WinForms.Charting.SeriesXY.PolygonSeries.GetTitleText
public override string GetTitleText()

Returns

string
returns M:LightningChartLib.WinForms.Charting.SeriesXY.PolygonSeries.GetTitleText

InvalidateData()

Series data has been modified directly by it's array. Use this method to notify chart that this series needs a refresh

public override void InvalidateData()

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

LoadFromCSV(string, SeparatorCSV)

Loads series data from a CSV file.

public override bool LoadFromCSV(string file, SeparatorCSV separator)

Parameters

file string

CSV file name. If file does not exist, LoadFromCSV returns false.

separator SeparatorCSV

Value and floating point number separator.

Returns

bool

True if import succeeds. Otherwise false.

OnDeserialized(StreamingContext)

OnDeserialized is called just after the object has been deserialized

[OnDeserialized]
protected void OnDeserialized(StreamingContext context)

Parameters

context StreamingContext

Context

SaveToCSV(string, SeparatorCSV)

Saves series data into CSV file

public override bool SaveToCSV(string file, SeparatorCSV separator)

Parameters

file string

Target file. If file already exists, it will be overwritten.

separator SeparatorCSV

Value and floating point number separator definition

Returns

bool

True if save is successful

ToString()

Item to string.

public override string ToString()

Returns

string
returns M:LightningChartLib.WinForms.Charting.SeriesXY.PolygonSeries.ToString