PointSeriesEnumerator
A custom IEnumerator implementation to provide enumeration for IPointSeries input
Implements: IEnumerator<IPoint>, IEnumerator, IDisposable, IEnumerator<Point2D>
Constructors
public PointSeriesEnumerator(IPointSeries pointSeries)
pointSeriesEnumerator = PointSeriesEnumerator(pointSeries)
Initializes a new instance of the PointSeriesEnumerator class.
- pointSeries
- The point series.
Properties
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.
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
public virtual void Dispose()
pointSeriesEnumerator.Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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.
public virtual void Reset()
pointSeriesEnumerator.Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.