PointSeriesEnumerator

StockSharp.Xaml.Charting.Model.DataSeries

A custom IEnumerator implementation to provide enumeration for IPointSeries input

Implements: IEnumerator<IPoint>, IEnumerator, IDisposable, IEnumerator<Point2D>

Constructors

PointSeriesEnumerator
public PointSeriesEnumerator(IPointSeries pointSeries)
pointSeriesEnumerator = PointSeriesEnumerator(pointSeries)

Initializes a new instance of the PointSeriesEnumerator class.

pointSeries
The point series.

Properties

Current
public IPoint Current { get; }
value = pointSeriesEnumerator.Current

Gets the IPoint in the collection at the current position of the enumerator.

Returns: The element in the collection at the current position of the enumerator.

IsReset
public bool IsReset { get; }
value = pointSeriesEnumerator.IsReset
System#Collections#IEnumerator#Current

Gets the element in the collection at the current position of the enumerator.

Returns: The element in the collection at the current position of the enumerator.

Methods

Dispose
public virtual void Dispose()
pointSeriesEnumerator.Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MoveNext
public virtual bool MoveNext()
result = pointSeriesEnumerator.MoveNext()

Advances the enumerator to the next element of the collection.

Returns: true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Reset
public virtual void Reset()
pointSeriesEnumerator.Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.