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
END
protected const int END = 6
Field Value
EOT
protected const char EOT = '\uffff'
Field Value
Even
protected bool Even
Field Value
High
protected int High
Field Value
Inverse
protected bool Inverse
Field Value
Low
protected int Low
Field Value
MINUS
protected const int MINUS = 2
Field Value
NOT
protected const int NOT = 3
Field Value
NUMBER
protected const int NUMBER = 5
Field Value
Number
protected int Number
Field Value
Odd
protected bool Odd
Field Value
Ptr
protected int Ptr
Field Value
TEXT
protected const int TEXT = 4
Field Value
Text
protected char[] Text
Field Value
- char[]
other
protected string other
Field Value
Properties
Type
protected int Type { get; }
Property Value
Methods
Expand(string, int)
Generates a list of numbers from a string.
public static ICollection<int> Expand(string ranges, int maxNumber)
Parameters
Returns
- ICollection<int>
a list with the numbers as Integer
GetAttributes()
protected bool GetAttributes()
Returns
NextChar()
protected char NextChar()
Returns
PutBack()
protected void PutBack()