Show / Hide Table of Contents

# Class PageSet

PageSet is a container of page numbers ordered following a linear sequence. The page numbers are integers and must be greater than zero. Duplicates are allowed.

##### Inheritance

object
PageSet

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class PageSet : IDisposable

##### Remarks

This is not a mathematical set

### Constructors

#### PageSet()

Default constructor. Constructs 'PageSet' with no pages

##### Declaration

    public PageSet()

#### PageSet(int)

Construct a set of pages with just one number.

##### Declaration

    public PageSet(int one_page)

##### Parameters

Type | Name | Description
--- | --- | ---
int | one_page | the one_page

##### See Also

AddPage(int)

#### PageSet(int, int)

Construct a range of pages.

##### Declaration

    public PageSet(int range_start, int range_end)

##### Parameters

Type | Name | Description
--- | --- | ---
int | range_start | the range_start
int | range_end | the range_end

##### See Also

AddRange(int, int, Filter)

#### PageSet(int, int, Filter)

Construct a filtered range of pages.

##### Declaration

    public PageSet(int range_start, int range_end, PageSet.Filter filter)

##### Parameters

Type | Name | Description
--- | --- | ---
int | range_start | the range_start
int | range_end | the range_end
PageSet.Filter | filter | the filter

##### See Also

AddRange(int, int, Filter)

### Methods

#### AddPage(int)

Add a value to the sequence.

##### Declaration

    public void AddPage(int one_page)

##### Parameters

Type | Name | Description
--- | --- | ---
int | one_page | The page number being added

#### AddRange(int, int)

Add a range of values to the sequence. Reverse ordering is legal.

##### Declaration

    public void AddRange(int range_start, int range_end)

##### Parameters

Type | Name | Description
--- | --- | ---
int | range_start | The low value in the range
int | range_end | The high value in the range

#### AddRange(int, int, Filter)

Add a range of values to the sequence. Reverse ordering is legal.

##### Declaration

    public void AddRange(int range_start, int range_end, PageSet.Filter filter)

##### Parameters

Type | Name | Description
--- | --- | ---
int | range_start | The low value in the range
int | range_end | The high value in the range
PageSet.Filter | filter | page set filter type

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### ~PageSet()

Releases all resources used by the PageSet

##### Declaration

    protected ~PageSet()

### Implements

IDisposable