java.lang.Object | |||
↳ | com.pdftron.layout.ContentElement | ||
↳ | com.pdftron.layout.ContentNode | ||
↳ | com.pdftron.layout.List |
A class representing a list in the document content tree.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | List.ListItemNumberFormat |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ListItem |
addItem()
Add a new list item to the list.
| ||||||||||
void |
continueList()
Continues the logical continuation of a particular list, even if other non-list content items
have been created since the last call to AddItem().
| ||||||||||
int |
getIndentationLevel()
Get the indentation level of the list.
| ||||||||||
TextStyledElement |
getLabelStyle()
Get the text style element for the list item labels.
| ||||||||||
int |
getListIdentifier()
Get the identifier of the list.
| ||||||||||
void |
setNumberFormat(List.ListItemNumberFormat format)
Set the number format of the list.
| ||||||||||
void |
setNumberFormat(List.ListItemNumberFormat format, String suffix, boolean cascade)
Set the number format of the list with a custom suffix and cascade flag.
| ||||||||||
void |
setStartIndex(int idx)
Set the start index for the list items.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.layout.ContentNode
| |||||||||||
From class
com.pdftron.layout.ContentElement
| |||||||||||
From class
java.lang.Object
|
Add a new list item to the list.
PDFNetException |
---|
Continues the logical continuation of a particular list, even if other non-list content items have been created since the last call to AddItem(). This method is useful when splitting a sublist and wanting to continue the new items as part of the original sublist hierarchy. Note: Without calling ContinueList(), new list items created after a split (e.g., a split paragraph) would be added to the main list structure (above the split) based on their natural positions in the list/sublist hierarchy. Example usage: To continue a root-level list after a split, call ContinueList() on the root-level list.
PDFNetException |
---|
Get the text style element for the list item labels.
PDFNetException |
---|
Set the number format of the list.
format | The number format to set for the list. |
---|
PDFNetException |
---|
Set the number format of the list with a custom suffix and cascade flag.
format | The number format to set for the list. |
---|---|
suffix | The suffix to append to the list item number. |
cascade | If true, the number format will be applied to nested lists as well. |
PDFNetException |
---|
Set the start index for the list items.
idx | The start index value. |
---|
PDFNetException |
---|