[]
        
(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
OutputRange.Enumerator
Implements
Inherited Members

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()