# OdtList

An XML-backed ordered or unordered ODT list.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

An XML-backed ordered or unordered ODT list.

## Inheritance

- object
- OdtList

## Usage

Explore 3 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 3

- Method [OdtDocument.AddList](/api/open-document/officeimo-opendocument-odtdocument/#method-addlist-boolean)
- Property [OdtDocument.Lists](/api/open-document/officeimo-opendocument-odtdocument/#property-lists)
- Method [OdtListItem.AddList](/api/open-document/officeimo-opendocument-odtlistitem/#method-addlist-boolean)

Filter members 

Show inherited

## Methods

`public OdtListItem AddItem(string? text = null)` [#](#method-additem-string)

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

Adds an item containing one paragraph.

Parameters

**text string? = null optional**

Returns

`OdtListItem`

## 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 IReadOnlyList<OdtListItem> Items { get; }` [#](#property-items)

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

List items in source order.

<!-- PowerForge markdown artifact sha256:6FD63CE66EC0FFC84827401D6AC670D38B7348F6C74B74B34299799D8B735154 -->
