# PdfListItem

List item text with optional rich inline runs.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfListItem.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L14)

**Modifiers**

sealed

List item text with optional rich inline runs.

## Inheritance

- object
- PdfListItem

## Usage

Explore 6 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 [PdfListItem.Plain](/api/pdf/officeimo-pdf-pdflistitem/#method-plain-string-string-string)
- Method [PdfListItem.Rich](/api/pdf/officeimo-pdf-pdflistitem/#method-rich-collections-generic-ienumerable-officeimo-pdf-pdftextrun-string-string)

### Accepted by parameters 4

- Method [PdfContentBuilder.AddList](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle) parameter `items`
- Method [PdfContentBuilder.AddNumberedList](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addnumberedlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle) parameter `items`
- Method [PdfDocument.AddList](/api/pdf/officeimo-pdf-pdfdocument/#method-addlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-officeimo-pdf-pdfliststyle) parameter `items`
- Method [PdfDocument.AddNumberedList](/api/pdf/officeimo-pdf-pdfdocument/#method-addnumberedlist-collections-generic-ienumerable-officeimo-pdf-pdflistitem-officeimo-officealignment-nullable-officeimo-officecolor-int32-officeimo-pdf-pdfliststyle) parameter `items`

Filter members 

Show inherited

## Constructors

PdfListItem 2 overloads

`public PdfListItem(string text, string? bookmarkName = null, string? marker = null)` [#](#constructor-ctor-string-string-string)

[PdfListItem.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L14)

Create a plain list item.

Parameters

**text string required**

**bookmarkName string? = null optional**

**marker string? = null optional**

`public PdfListItem(IEnumerable<PdfTextRun> runs, string? bookmarkName = null, string? marker = null)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdftextrun-string-string)

[PdfListItem.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L14)

Create a rich list item from inline text runs.

Parameters

**runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

**bookmarkName string? = null optional**

**marker string? = null optional**

## Methods

`public static PdfListItem Plain(string text, string? bookmarkName = null, string? marker = null)` [#](#method-plain-string-string-string)

[PdfListItem.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L63)

Create a normal unstyled item.

Parameters

**text string required**

**bookmarkName string? = null optional**

**marker string? = null optional**

Returns

`PdfListItem`

`public static PdfListItem Rich(IEnumerable<PdfTextRun> runs, string? bookmarkName = null, string? marker = null)` [#](#method-rich-collections-generic-ienumerable-officeimo-pdf-pdftextrun-string-string)

[PdfListItem.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L66)

Create a rich item from inline text runs.

Parameters

**runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

**bookmarkName string? = null optional**

**marker string? = null optional**

Returns

`PdfListItem`

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

[PdfListItem.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L8)

Plain text value for readback, wrapping fallback, and simple item APIs.

`public IReadOnlyList<PdfTextRun> Runs { get; }` [#](#property-runs)

[PdfListItem.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L10)

Rich inline runs rendered as the list item body.

`public string? BookmarkName { get; }` [#](#property-bookmarkname)

[PdfListItem.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L12)

Optional named destination anchored to this list item.

`public string? Marker { get; }` [#](#property-marker)

[PdfListItem.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfListItem.cs#L16)

Optional explicit marker rendered instead of the list block default marker.

<!-- PowerForge markdown artifact sha256:03EB663EC70325A8E9B478EE4AFE91DA71611A16571C7B707E480D96162200D7 -->
