Class
PdfListItem
OfficeIMO.Pdf
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
- Method PdfListItem.Rich
Accepted by parameters 4
- Method PdfContentBuilder.AddList
- Method PdfContentBuilder.AddNumberedList
- Method PdfDocument.AddList
- Method PdfDocument.AddNumberedList
Constructors
PdfListItem 2 overloads
public PdfListItem(string text, string? bookmarkName = null, string? marker = null) #Create a plain list item.
Parameters
- text string
- bookmarkName string? = null
- marker string? = null
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>
- bookmarkName string? = null
- marker string? = null
Methods
public static PdfListItem Plain(string text, string? bookmarkName = null, string? marker = null) #Create a normal unstyled item.
Parameters
- text string
- bookmarkName string? = null
- marker string? = null
Returns
PdfListItempublic 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>
- bookmarkName string? = null
- marker string? = null
Returns
PdfListItemInherited Methods
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.