Table of Contents

Class SequenceList

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

This class expands a string into a list of numbers. The main use is to select a range of pages. The general systax is: [!][o][odd][e][even]start-end You can have multiple ranges separated by commas ','. The '!' modifier removes the range from what is already selected. The range changes are incremental, that is, numbers are added or deleted as the range appears. The start or the end, but not both, can be ommited.

public class SequenceList
Inheritance
SequenceList
Inherited Members

Constructors

SequenceList(string)

protected SequenceList(string range)

Parameters

range string

Fields

COMMA

protected const int COMMA = 1

Field Value

int

END

protected const int END = 6

Field Value

int

EOT

protected const char EOT = '\uffff'

Field Value

char

Even

protected bool Even

Field Value

bool

High

protected int High

Field Value

int

Inverse

protected bool Inverse

Field Value

bool

Low

protected int Low

Field Value

int

MINUS

protected const int MINUS = 2

Field Value

int

NOT

protected const int NOT = 3

Field Value

int

NUMBER

protected const int NUMBER = 5

Field Value

int

Number

protected int Number

Field Value

int

Odd

protected bool Odd

Field Value

bool

Ptr

protected int Ptr

Field Value

int

TEXT

protected const int TEXT = 4

Field Value

int

Text

protected char[] Text

Field Value

char[]

other

protected string other

Field Value

string

Properties

Type

protected int Type { get; }

Property Value

int

Methods

Expand(string, int)

Generates a list of numbers from a string.

public static ICollection<int> Expand(string ranges, int maxNumber)

Parameters

ranges string

the comma separated ranges

maxNumber int

the maximum number in the range

Returns

ICollection<int>

a list with the numbers as Integer

GetAttributes()

protected bool GetAttributes()

Returns

bool

NextChar()

protected char NextChar()

Returns

char

PutBack()

protected void PutBack()