# OdfTextList

A native Draw text list with preserved levels, numbering, and continuation declarations.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

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

**Modifiers**

sealed

A native Draw text list with preserved levels, numbering, and continuation declarations.

## Inheritance

- object
- OdfTextList

## Usage

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

- Method [OdfTextListItem.AddList](/api/open-document/officeimo-opendocument-odftextlistitem/#method-addlist-boolean)
- Property [OdfTextListItem.Lists](/api/open-document/officeimo-opendocument-odftextlistitem/#property-lists)
- Method [OdgShape.AddList](/api/open-document/officeimo-opendocument-odgshape/#method-addlist-boolean)
- Property [OdgShape.Lists](/api/open-document/officeimo-opendocument-odgshape/#property-lists)

Filter members 

Show inherited

## Methods

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

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

Adds an item containing one paragraph.

Parameters

**text string? = null optional**

Returns

`OdfTextListItem`

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

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

Returns a detached copy of the native list.

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 string? StyleName { get; set; }` [#](#property-stylename)

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

Referenced list style name. A nested list without a style inherits its enclosing list's style.

`public bool IsOrdered { get; }` [#](#property-isordered)

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

Whether the effective native list-level style is numbered.

`public IReadOnlyList<OdfTextListItem> Items { get; }` [#](#property-items)

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

Direct list items; headers remain preserved separately in native XML.

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