# OdfTextListItem

A native list item containing paragraphs and optionally nested lists.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfTextList.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L47)

**Modifiers**

sealed

A native list item containing paragraphs and optionally nested lists.

## Inheritance

- object
- OdfTextListItem

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [OdfTextList.AddItem](/api/open-document/officeimo-opendocument-odftextlist/#method-additem-string)
- Property [OdfTextList.Items](/api/open-document/officeimo-opendocument-odftextlist/#property-items)

Filter members 

Show inherited

## Methods

`public OdfTextList AddList(bool ordered = false)` [#](#method-addlist-boolean)

[OdfTextList.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L51)

Adds a nested list with an independent native style at its actual nesting level, up to level ten.

Parameters

**ordered bool = false optional**

Returns

`OdfTextList`

`public OdfTextParagraph AddParagraph(string? text = null)` [#](#method-addparagraph-string)

[OdfTextList.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L47)

Adds a paragraph after existing content.

Parameters

**text string? = null optional**

Returns

`OdfTextParagraph`

`public XElement ToXml()` [#](#method-toxml)

[OdfTextList.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L57)

Returns a detached copy of the native item, including numbering overrides.

Returns

`XElement`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public long? StartValue { get; set; }` [#](#property-startvalue)

[OdfTextList.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L34)

Optional nonnegative numbering restart for this item. Null uses the list counter.

`public IReadOnlyList<OdfTextParagraph> Paragraphs { get; }` [#](#property-paragraphs)

[OdfTextList.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L42)

Direct paragraphs and headings in this item.

`public IReadOnlyList<OdfTextList> Lists { get; }` [#](#property-lists)

[OdfTextList.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextList.cs#L44)

Direct nested lists.

<!-- PowerForge markdown artifact sha256:3391CD2202A1311B61A501488BED9D034260DE58201FC45763CDBD64ED8B51E4 -->
