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
Properties
Antialias
Antialias area draw.
public bool Antialias { get; set; }
Property Value
Behind
Draw behind series.
public bool Behind { get; set; }
Property Value
Border
Border style.
public LineStyle Border { get; set; }
Property Value
BorderVisible
Show border.
public bool BorderVisible { get; set; }
Property Value
CursorTrackEnabled
Cursor tracking enabled.
public bool CursorTrackEnabled { get; set; }
Property Value
Fill
Polygon fill.
public Fill Fill { get; set; }
Property Value
IntersectionsAllowed
Intersections of polygon lines is allowed.
public bool IntersectionsAllowed { get; set; }
Property Value
Points
Series points.
public PointDouble2D[] Points { get; set; }
Property Value
SimpleHighlightColor
Simple highlight color when user interactive device is over.
public Color SimpleHighlightColor { get; set; }
Property Value
Statistics
Statistics of the line series
public LineSeriesStat Statistics { get; }
Property Value
Title
Series title.
public PolygonSeriesTitle Title { get; set; }
Property Value
Methods
Clear()
Clear all data.
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.
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
Returns
- bool
True if point count is greater than 0
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
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
filestringCSV file name. If file does not exist, LoadFromCSV returns false.
separatorSeparatorCSVValue 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
contextStreamingContextContext
SaveToCSV(string, SeparatorCSV)
Saves series data into CSV file
public override bool SaveToCSV(string file, SeparatorCSV separator)
Parameters
filestringTarget file. If file already exists, it will be overwritten.
separatorSeparatorCSVValue 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