Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfListItem

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
551365f138da with working tree changes
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

Accepted by parameters 4

Constructors

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

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) #

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) #

Create a normal unstyled item.

Parameters

text string required
bookmarkName string? = null optional
marker string? = null optional
public static PdfListItem Rich(IEnumerable<PdfTextRun> runs, string? bookmarkName = null, string? marker = null) #

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

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.