Summary: Methods | Inherited Methods | [Expand All]
public class

# ListItem

extends ContentNode

java.lang.Object
↳ | com.pdftron.layout.ContentElement
| ↳ | com.pdftron.layout.ContentNode
|  | ↳ | com.pdftron.layout.ListItem

## Class Overview

A class representing an item in a list in the document content tree.

## Summary

Public Methods
List | addList() Add a nested list to the list item.
Paragraph | addParagraph() Adds a paragraph to the document.
Paragraph | addParagraph(String text) Add a new paragraph with the specified text to the list item.
int | getIndentationLevel() Get the indentation level of the list item.
int | getItemIndex() Get the index of the list item within the parent list.
int | getListIdentifier() Get the identifier of the list.

[Expand] Inherited Methods
From class com.pdftron.layout.ContentNode
ContentNodeIterator | getContentNodeIterator() Retrieve a ContentNodeIterator object from the content node The ContentNodeIterator object can be used to traverse the children of the content node.
From class com.pdftron.layout.ContentElement
ContentNode | asContentNode() Retrieve the `ContentNode` object for this content element if it is a content node.
List | asList() Retrieve the `List` object for this content element if it is a list.
ListItem | asListItem() Retrieve the `ListItem` object for this content element if it is a list item.
Paragraph | asParagraph() Retrieve the `Paragraph` object for this content element if it is a paragraph.
Table | asTable() Retrieve the `Table` object for this content element if it is a table.
TableCell | asTableCell() Retrieve the `TableCell` object for this content element if it is a table cell.
TableRow | asTableRow() Retrieve the `TableRow` object for this content element if it is a table row.
TextRun | asTextRun() Retrieve the `TextRun` object for this content element if it is a text run.
TextStyledElement | getTextStyledElement() Retrieve the `TextStyledElement` object for manipulating the text style of this content element.
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public List addList ()

Add a nested list to the list item.

##### Returns

- The List object representing the nested list.

##### Throws

PDFNetException |

#### public Paragraph addParagraph ()

Adds a paragraph to the document.

##### Returns

- The paragraph object

##### Throws

PDFNetException |

#### public Paragraph addParagraph (String text)

Add a new paragraph with the specified text to the list item.

##### Parameters

text | The text content of the paragraph.

##### Returns

- The Paragraph object representing the newly added paragraph.

##### Throws

PDFNetException |

#### public int getIndentationLevel ()

Get the indentation level of the list item.

##### Returns

- The indentation level.

##### Throws

PDFNetException |

#### public int getItemIndex ()

Get the index of the list item within the parent list.

##### Returns

- The index of the list item.

##### Throws

PDFNetException |

#### public int getListIdentifier ()

Get the identifier of the list.

##### Returns

- The list identifier.

##### Throws

PDFNetException |