HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
A List contains several ListItems. More...
Public Member Functions | |
List () | |
List (float symbolIndent) | |
List (bool numbered) | |
List (bool numbered, bool lettered) | |
List (bool numbered, float symbolIndent) | |
Constructs a List. More... | |
List (bool numbered, bool lettered, float symbolIndent) | |
Constructs a List. More... | |
bool | Process (IElementListener listener) |
Processes the element by adding it (or the different parts) to an IElementListener. More... | |
virtual bool | Add (Object o) |
Adds an Object to the List. More... | |
void | NormalizeIndentation () |
void | SetListSymbol (string symbol) |
Sets the listsymbol. More... | |
bool | IsContent () |
bool | IsNestable () |
virtual bool | IsEmpty () |
String | getPostSymbol () |
![]() | |
string | ToString () |
Gets the content of the text element. More... | |
Static Public Attributes | |
const bool | ORDERED = true |
const bool | UNORDERED = false |
const bool | NUMERICAL = false |
const bool | ALPHABETICAL = true |
const bool | UPPERCASE = false |
const bool | LOWERCASE = true |
Protected Attributes | |
ArrayList | list = new ArrayList() |
This is the ArrayList containing the different ListItems. More... | |
bool | numbered = false |
bool | lettered = false |
bool | lowercase = false |
bool | autoindent = false |
bool | alignindent = false |
int | first = 1 |
This variable indicates the first number of a numbered list. More... | |
Chunk | symbol = new Chunk("-") |
This is the listsymbol of a list that is not numbered. More... | |
String | preSymbol = "" |
String | postSymbol = ". " |
float | indentationLeft = 0 |
The indentation of this list on the left side. More... | |
float | indentationRight = 0 |
The indentation of this list on the right side. More... | |
float | symbolIndent = 0 |
The indentation of the listitems. More... | |
Properties | |
int | Type [get] |
Gets the type of the text element. More... | |
ArrayList | Chunks [get] |
Gets all the chunks in this element. More... | |
bool | Numbered [get, set] |
bool | Lettered [get, set] |
bool | Lowercase [get, set] |
bool | Autoindent [get, set] |
bool | Alignindent [get, set] |
int | First [get, set] |
Get/set the first number More... | |
Chunk | ListSymbol [set] |
Sets the symbol More... | |
float | IndentationLeft [get, set] |
Get/set the indentation of this paragraph on the left side. More... | |
float | IndentationRight [get, set] |
Get/set the indentation of this paragraph on the right side. More... | |
float | SymbolIndent [get, set] |
Gets the symbol indentation. More... | |
ArrayList | Items [get] |
Gets all the items in the list. More... | |
int | Size [get] |
Gets the size of the list. More... | |
float | TotalLeading [get] |
Gets the leading of the first listitem. More... | |
Chunk | Symbol [get, set] |
Get/set the symbol indentation. More... | |
String | PostSymbol [get, set] |
String | PreSymbol [get, set] |
![]() | |
int | Type [get] |
Gets the type of the text element. More... | |
ArrayList | Chunks [get] |
Gets all the chunks in this element. More... | |
A List contains several ListItems.
Example 1:
The result of this code looks like this:
Example 2:
The result of this code looks like this:
iTextSharp.text.List.List | ( | ) |
Constructs a List
.
iTextSharp.text.List.List | ( | float | symbolIndent | ) |
Constructs a List
with a specific symbol indentation.
symbolIndent | the symbol indentation |
iTextSharp.text.List.List | ( | bool | numbered | ) |
Constructs a List
.
numbered | a bool |
iTextSharp.text.List.List | ( | bool | numbered, |
bool | lettered | ||
) |
Constructs a List
.
numbered | a bool |
lettered | has the list to be 'numbered' with letters |
iTextSharp.text.List.List | ( | bool | numbered, |
float | symbolIndent | ||
) |
Constructs a List.
the parameter symbolIndent is important for instance when generating PDF-documents; it indicates the indentation of the listsymbol.
numbered | a bool |
symbolIndent | the indentation that has to be used for the listsymbol |
iTextSharp.text.List.List | ( | bool | numbered, |
bool | lettered, | ||
float | symbolIndent | ||
) |
Constructs a List.
numbered | a bool |
lettered | a bool |
symbolIndent | the indentation that has to be used for the listsymbol |
|
virtual |
Adds an Object to the List.
o | the object to add |
Implements iTextSharp.text.ITextElementArray.
Reimplemented in iTextSharp.text.ZapfDingbatsNumberList, iTextSharp.text.ZapfDingbatsList, iTextSharp.text.RomanList, and iTextSharp.text.GreekList.
String iTextSharp.text.List.getPostSymbol | ( | ) |
Returns the String that is after a number or letter in the list symbol.
bool iTextSharp.text.List.IsContent | ( | ) |
|
virtual |
Returns true
if the list is empty.
true
if the list is empty bool iTextSharp.text.List.IsNestable | ( | ) |
Implements iTextSharp.text.IElement.
void iTextSharp.text.List.NormalizeIndentation | ( | ) |
Makes sure all the items in the list have the same indentation.
bool iTextSharp.text.List.Process | ( | IElementListener | listener | ) |
Processes the element by adding it (or the different parts) to an IElementListener.
listener | an IElementListener |
Implements iTextSharp.text.IElement.
void iTextSharp.text.List.SetListSymbol | ( | string | symbol | ) |
Sets the listsymbol.
This is a shortcut for SetListSymbol(Chunk symbol).
symbol | a string |
|
protected |
Indicates if the indentation of all the items has to be aligned.
|
static |
a possible value for the lettered parameter
|
protected |
Indicates if the indentation has to be set automatically.
|
protected |
This variable indicates the first number of a numbered list.
|
protected |
The indentation of this list on the left side.
|
protected |
The indentation of this list on the right side.
|
protected |
Indicates if the listsymbols are numerical or alphabetical.
|
protected |
This is the ArrayList containing the different ListItems.
|
static |
a possible value for the lettered parameter
|
protected |
Indicates if the listsymbols are lowercase or uppercase.
|
protected |
Indicates if the list has to be numbered.
|
static |
a possible value for the lettered parameter
|
static |
a possible value for the numbered parameter
|
protected |
In case you are using numbered/lettered lists, this String is added after the number/letter.
|
protected |
In case you are using numbered/lettered lists, this String is added before the number/letter.
This is the listsymbol of a list that is not numbered.
|
protected |
The indentation of the listitems.
|
static |
a possible value for the numbered parameter
|
static |
a possible value for the lettered parameter
|
getset |
|
getset |
|
get |
Gets all the chunks in this element.
an ArrayList
|
getset |
Get/set the first number
an int
|
getset |
Get/set the indentation of this paragraph on the left side.
the indentation
|
getset |
Get/set the indentation of this paragraph on the right side.
the indentation
|
get |
Gets all the items in the list.
an ArrayList containing ListItems
|
getset |
|
getset |
|
getset |
|
getset |
Sets the String that has to be added after a number or letter in the list symbol.
postSymbol | the String that has to be added after a number or letter in the list symbol. |
|
getset |
Sets the String that has to be added before a number or letter in the list symbol.
preSymbol | the String that has to be added before a number or letter in the list symbol. |
|
get |
Gets the size of the list.
a size
|
getset |
Gets the symbol indentation.
the symbol indentation
|
get |
Gets the leading of the first listitem.
a leading
|
get |
Gets the type of the text element.
a type