Struct ItemPageIterator
Enumerates through a page of items in 'order' of XY coordinates, either forward or backwards.
public struct ItemPageIterator : IEnumerable<ItemJar>, IEnumerable, IEnumerator<ItemJar>, IEnumerator, IDisposable
- Implements
-
IEnumerable<ItemJar>IEnumerator<ItemJar>
- Inherited Members
- Extension Methods
Constructors
ItemPageIterator(Items, bool)
public ItemPageIterator(Items page, bool reversed)
Parameters
pageItemsreversedbool
Properties
Current
Gets the element in the collection at the current position of the enumerator.
public ItemJar Current { get; }
Property Value
- ItemJar
The element in the collection at the current position of the enumerator.
Methods
GetEnumerator()
public readonly ItemPageIterator GetEnumerator()
Returns
MoveNext()
Advances the enumerator to the next element of the collection.
public bool MoveNext()
Returns
- bool
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
Exceptions
- InvalidOperationException
The collection was modified after the enumerator was created.
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
public void Reset()
Exceptions
- InvalidOperationException
The collection was modified after the enumerator was created.