Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfListItem

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

List item text with optional rich inline runs.

Inheritance

  • Object
  • PdfListItem

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 2

Accepted by parameters 2

Constructors

PdfListItem 2 overloads
public PdfListItem(String text, String? bookmarkName = null, String? marker = null) #

Create a plain list item.

Parameters

text System.String requiredposition: 0
bookmarkName System.String? = null optionalposition: 1
marker System.String? = null optionalposition: 2
public PdfListItem(IEnumerable<PdfTextRun> runs, String? bookmarkName = null, String? marker = null) #

Create a rich list item from inline text runs.

Parameters

runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> requiredposition: 0
bookmarkName System.String? = null optionalposition: 1
marker System.String? = null optionalposition: 2

Methods

public static PdfListItem Plain(String text, String? bookmarkName = null, String? marker = null) #
Returns: PdfListItem

Create a normal unstyled item.

Parameters

text System.String requiredposition: 0
bookmarkName System.String? = null optionalposition: 1
marker System.String? = null optionalposition: 2
public static PdfListItem Rich(IEnumerable<PdfTextRun> runs, String? bookmarkName = null, String? marker = null) #
Returns: PdfListItem

Create a rich item from inline text runs.

Parameters

runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> requiredposition: 0
bookmarkName System.String? = null optionalposition: 1
marker System.String? = null optionalposition: 2

Properties

public String Text { get; } #

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

public IReadOnlyList<PdfTextRun> Runs { get; } #

Rich inline runs rendered as the list item body.

public String? BookmarkName { get; } #

Optional named destination anchored to this list item.

public String? Marker { get; } #

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