# OdtListItem

An XML-backed ODT list item.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtList.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtList.cs#L55)

**Modifiers**

sealed

An XML-backed ODT list item.

## Inheritance

- object
- OdtListItem

## 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 [OdtList.AddItem](/api/open-document/officeimo-opendocument-odtlist/#method-additem-string)
- Property [OdtList.Items](/api/open-document/officeimo-opendocument-odtlist/#property-items)

Filter members 

Show inherited

## Methods

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

[OdtList.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtList.cs#L65)

Adds a list nested one level below this item, after its paragraphs.

Parameters

**ordered bool = false optional**

True for a numbered list; false for bullets.

Returns

`OdtList`

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

[OdtList.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtList.cs#L55)

Adds another paragraph to this item.

Parameters

**text string? = null optional**

Returns

`OdtParagraph`

## 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)

[OdtList.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtList.cs#L40)

Number this item shows in an ordered list, restarting the count; null continues the list's count.

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

[OdtList.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtList.cs#L49)

Paragraphs directly contained by this item.

<!-- PowerForge markdown artifact sha256:C1A9407BA3560CEF6CD222537165BBC4A927AC805A7B63FE26F7AC9317666EC7 -->
