# RtfListOverride

RTF list override entry that maps \ls paragraph ids to list definitions.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfListOverride.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L7)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

RTF list override entry that maps \ls paragraph ids to list definitions.

## Inheritance

- object
- RtfListOverride

## 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 [RtfDocument.AddListOverride](/api/rtf/officeimo-rtf-rtfdocument/#method-addlistoverride-int32-int32)
- Property [RtfDocument.ListOverrides](/api/rtf/officeimo-rtf-rtfdocument/#property-listoverrides)

Filter members 

Show inherited

## Constructors

`public RtfListOverride(int id, int listId)` [#](#constructor-ctor-int32-int32)

[RtfListOverride.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L7)

Creates a list override.

Parameters

**id int required**

**listId int required**

## Methods

`public RtfListLevelOverride AddLevelOverride()` [#](#method-addleveloverride)

[RtfListOverride.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L29)

Adds a per-level override entry.

Returns

`RtfListLevelOverride`

## 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 int Id { get; internal set; }` [#](#property-id)

[RtfListOverride.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L16)

Paragraph list override id used by \ls.

`public int ListId { get; internal set; }` [#](#property-listid)

[RtfListOverride.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L19)

Referenced list definition id.

`public int? OverrideCount { get; set; }` [#](#property-overridecount)

[RtfListOverride.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L22)

Number of level overrides, when present.

`public IReadOnlyList<RtfListLevelOverride> LevelOverrides { get; }` [#](#property-leveloverrides)

[RtfListOverride.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfListOverride.cs#L25)

Per-level override metadata in declaration order.

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