Class PageRanges
Page ranges of a file, inclusive of start and end page index, where page index starts from 1.
Inheritance
System.Object
PageRanges
Namespace: Adobe.DocumentCloud.Services.options
Assembly: Adobe.DocumentCloud.Services.Doc.dll
Syntax
public class PageRanges
Constructors
PageRanges()
Constructs a new PageRanges instance with no pages added.
Declaration
public PageRanges()
Properties
Ranges
Get page ranges of a file
Declaration
public List<PageRange> Ranges { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<Adobe.DocumentCloud.Services.core.input.PageRange> | Page ranges of a file |
Methods
AddAll()
Adds a page range representing all pages.
Declaration
public void AddAll()
AddAllFrom(Int32)
Adds a page range from start page index to the last page. Page index starts from 1.
Declaration
public void AddAllFrom(int start)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | start | start page index |
AddRange(Int32, Int32)
Adds a page range. Page indexes start from 1.
Declaration
public void AddRange(int startPage, int endPage)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | startPage | start page index, inclusive |
| System.Int32 | endPage | end page index, inclusive |
AddSinglePage(Int32)
Adds a single page. Page index starts from 1.
Declaration
public void AddSinglePage(int page)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | page | single page index |
ToString()
Used internally by this SDK, not intended to be called by clients.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | string representation |
Overrides
System.Object.ToString()
Validate()
Used internally by this SDK, not intended to be called by clients.
Declaration
public void Validate()