PageRange Structure
Encapsulates one page range, which can have open or closed bounds. By default is "fully open" - it includes all existing pages. Page numbering starts from 1, not from 0.

Namespace: GroupDocs.Editor.Options
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 22.7.4.0
Syntax
public struct PageRange

The PageRange type exposes the following members.

Properties
  NameDescription
Public propertyCount
Numbers of pages within range. If 0 - page range spreads until end of the document no matter how much pages it consists of
Public propertyEndNumber
Exclusive end page number, until which this page range continues and on which is stops exclusively. If 0 - page range spreads until end of the document
Public propertyIsDefault
Indicates whether this instance represents a default "fully open" page range i.e. it represents all pages of a document (true) or not (false)
Public propertyStartNumber
Inclusive start page number, from which this page range starts. If 1 - page range starts from the first page of a document
Methods
  NameDescription
Public methodEquals
Detects whether this instance of PageRange is equal to specified
Public methodStatic memberFromBeginningWithCount
Creates a page range, that starts from the first page and has specified amount of pages
Public methodStatic memberFromStartPageTillEnd
Creates a page range, that starts from the specified page number and continues till the end of the document
Public methodStatic memberFromStartPageTillEndPage
Creates a page range, that starts from the specified page number (inclusively) and continues until the specified page number (exclusively)
Public methodStatic memberFromStartPageWithCount
Creates a page range, that starts from the specified page number and has specified amount of pages, or unlimited page count (till the end)
Fields
  NameDescription
Public fieldStatic memberAllPages
Represents all existing pages of a document. Default value.
Remarks
Immutable struct, that encapsulates a page range, which is not related to any specific document, and can represent a page range for any document.
See Also