# IWorkPagesNumberedList

Owns a decimal list whose items occupy separate paragraphs in one newly created Pages document.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[IWorkPagesNumberedList.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L44)

**Modifiers**

sealed

Owns a decimal list whose items occupy separate paragraphs in one newly created Pages document.

## Inheritance

- object
- IWorkPagesNumberedList

## Remarks

Items use nine non-tiered levels and half-point font sizes. Markers remain plain black in the list's font family; their size follows the first character run. Rich runs can vary their size, font family, opaque color and character decorations. Plain paragraphs and attachments preserve counters. Returning to this list after another list resumes its counters. Advancing or restarting a parent resets all its descendant counters. Instances are not thread safe.

## 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 [IWorkPagesDocument.CreateNumberedList](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-createnumberedlist-string-single)
- Property [IWorkPagesDocument.NumberedLists](/api/iwork/officeimo-iwork-iworkpagesdocument/#property-numberedlists)
- Property [IWorkPagesParagraphData.NumberedList](/api/iwork/officeimo-iwork-iworkpagesparagraphdata/#property-numberedlist)

Filter members 

Show inherited

## Methods

`public IWorkPagesParagraphData AddItem(string text, int level = 0, int? restartAt = null, IWorkPagesParagraphLayout? layout = null)` [#](#method-additem-string-int32-nullable-system-int32-officeimo-iwork-iworkpagesparagraphlayout)

[IWorkPagesNumberedList.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L44)

Adds one numbered body paragraph, continuing its level unless a positive restart is supplied.

Parameters

**text string required**

Item text without line breaks. TAB text requires an explicit layout.

**level int = 0 optional**

Zero-based native level from zero through eight. A nested item requires an earlier parent at the preceding level in this list.

**restartAt int? = null optional**

Optional positive counter value. The first parent starts at one by default.

**layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null optional**

Optional immutable paragraph spacing and tab stops.

Returns

`IWorkPagesParagraphData`

`public IWorkPagesParagraphData AddRichItem(IEnumerable<IWorkTextRunData> runs, int level = 0, int? restartAt = null, IWorkPagesParagraphLayout? layout = null)` [#](#method-addrichitem-collections-generic-ienumerable-officeimo-iwork-iworktextrundata-int32-nullable-system-int32-officeimo-iwork-iworkpagesparagraphlayout)

[IWorkPagesNumberedList.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L57)

Adds a snapshot of rich character runs as one numbered body paragraph.

Parameters

**runs System.Collections.Generic.IEnumerable<OfficeIMO.IWork.IWorkTextRunData> required**

Runs with half-point sizes. Sizes, font families, opaque colors and character decorations may vary.

**level int = 0 optional**

Zero-based native level from zero through eight. A nested item requires an earlier parent at the preceding level in this list.

**restartAt int? = null optional**

Optional positive counter value. The first parent starts at one by default.

**layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null optional**

Optional immutable paragraph spacing and tab stops.

Returns

`IWorkPagesParagraphData`

## 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 FontName { get; }` [#](#property-fontname)

[IWorkPagesNumberedList.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L29)

Gets the marker font and default body font.

`public float FontSizePoints { get; }` [#](#property-fontsizepoints)

[IWorkPagesNumberedList.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L31)

Gets the default body size in half-point increments, also used for paragraph-relative indentation.

`public IWorkDecimalListMarkerStyle MarkerStyle { get; }` [#](#property-markerstyle)

[IWorkPagesNumberedList.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L33)

Gets the decimal marker punctuation shared by every level of this list.

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

[IWorkPagesNumberedList.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesNumberedList.cs#L35)

Gets this list's items in their body insertion order.

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