Class PageSet
Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)
Describes a random set of pages.
To learn more, visit the Programming with Documents documentation article.
public sealed class PageSet : IEnumerable<int>, IEnumerable
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
PageSet(int)
Creates an one-page set based on exact page index.
public PageSet(int page)
Parameters
page
int
Zero-based index of the page.
Remarks
If a page is encountered that is not in the document, an exception will be thrown during rendering. System.Int32.MaxValue means the last page in the document.
PageSet(params int[])
Creates a page set based on exact page indices.
public PageSet(params int[] pages)
Parameters
pages
int[]
Zero-based indices of pages.
Remarks
If a page is encountered that is not in the document, an exception will be thrown during rendering. System.Int32.MaxValue means the last page in the document.
PageSet(params PageRange[])
Creates a page set based on ranges.
public PageSet(params PageRange[] ranges)
Parameters
ranges
PageRange[]
Array of page ranges.
Remarks
If a range is encountered that starts after the last page in the document, an exception will be thrown during rendering. All ranges that end after the last page are truncated to fit in the document.
Properties
All
Gets a set with all the pages of the document in their original order.
public static PageSet All { get; }
Property Value
Even
Gets a set with all the even pages of the document in their original order.
public static PageSet Even { get; }
Property Value
Remarks
Even pages have odd indices since page indices are zero-based.
Odd
Gets a set with all the odd pages of the document in their original order.
public static PageSet Odd { get; }
Property Value
Remarks
Odd pages have even indices since page indices are zero-based.
Methods
GetEnumerator()
public IEnumerator<int> GetEnumerator()
Returns
IEnumerator<int> </int>