Show / Hide Table of Contents

# Class ListItem

A ListItem represents an item within a List.

##### Inheritance

object
ContentElement
ContentNode
ListItem

##### Implements

IDisposable

##### Inherited Members

ContentNode.GetContentNodeIterator()
ContentElement.GetTextStyledElement()
ContentElement.AsContentNode()
ContentElement.AsTextRun()
ContentElement.AsParagraph()
ContentElement.AsTableCell()
ContentElement.AsTableRow()
ContentElement.AsTable()
ContentElement.AsList()
ContentElement.AsListItem()
ContentElement.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.Layout

###### Assembly: PDFNet.dll

##### Syntax

    public class ListItem : ContentNode, IDisposable

### Methods

#### AddList()

Add a nested sublist to the list item.

##### Declaration

    public List AddList()

##### Returns

Type | Description
--- | ---
List | The newly created List object representing the nested sublist

#### AddParagraph(string)

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

##### Declaration

    public Paragraph AddParagraph(string text)

##### Parameters

Type | Name | Description
--- | --- | ---
string | text | The text to add

##### Returns

Type | Description
--- | ---
Paragraph | The newly created Paragraph object

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected override void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

##### Overrides

ContentNode.Dispose(bool)

#### ~ListItem()

##### Declaration

    protected ~ListItem()

#### GetIndentationLevel()

Get the indentation level of the list item.

##### Declaration

    public int GetIndentationLevel()

##### Returns

Type | Description
--- | ---
int | The indentation level of the list item

#### GetItemIndex()

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

##### Declaration

    public int GetItemIndex()

##### Returns

Type | Description
--- | ---
int | The index of the list item

#### GetListIdentifier()

Get the identifier of the parent list.

##### Declaration

    public int GetListIdentifier()

##### Returns

Type | Description
--- | ---
int | The identifier of the parent list

### Implements

IDisposable