[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OutputRange.Enumerator

Class OutputRange.Enumerator

Namespace
GrapeCity.Documents.Common
Assembly
GcDocs.Imaging.dll

Allows enumerating all pages in the range.

It is the client's responsibility to take steps to avoid infinite loops if the OutputRange was created without specifying a valid MaxPageNumber.

public class OutputRange.Enumerator : IEnumerator<int>, IEnumerator, IDisposable
Inheritance
object
OutputRange.Enumerator
Implements
System.Collections.Generic.IEnumerator<T><int>
System.Collections.IEnumerator
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Enumerator(OutputRange, int, int)

Creates a new instance of the OutputRange enumerator.

public Enumerator(OutputRange range, int minPageNumber, int maxPageNumber)

Parameters

range OutputRange
minPageNumber int
maxPageNumber int

Properties

Current

Gets the current page number.

public int Current { get; }

Property Value

int

The current page number.

Methods

MoveNext()

Moves to the next page number in the range.

public bool MoveNext()

Returns

bool

True if there are more pages in the range.

Reset()

Resets the enumerator.

public void Reset()