API Reference
Class
PdfListItem
List item text with optional rich inline runs.
Inheritance
- Object
- PdfListItem
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PdfListItem.Plain
- Method PdfListItem.Rich
Accepted by parameters
- Method PdfDocument.RichBullets
- Method PdfDocument.RichNumbered
- Method PdfElementCompose.RichBullets
- Method PdfElementCompose.RichNumbered
- Method PdfItemCompose.RichBullets
- Method PdfItemCompose.RichNumbered
- Method PdfRowColumnCompose.RichBullets
- Method PdfRowColumnCompose.RichNumbered
Constructors
PdfListItem 2 overloads
public PdfListItem(String text, String bookmarkName = null, String marker = null) #Create a plain list item.
Parameters
- text System.String
- bookmarkName System.String = null
- marker System.String = null
public PdfListItem(IEnumerable<TextRun> runs, String bookmarkName = null, String marker = null) #Create a rich list item from inline text runs.
Parameters
- runs System.Collections.Generic.IEnumerable{OfficeIMO.Pdf.TextRun}
- bookmarkName System.String = null
- marker System.String = null
Methods
public static PdfListItem Plain(String text, String bookmarkName = null, String marker = null) #Returns:
PdfListItemCreate a normal unstyled item.
Parameters
- text System.String
- bookmarkName System.String = null
- marker System.String = null
public static PdfListItem Rich(IEnumerable<TextRun> runs, String bookmarkName = null, String marker = null) #Returns:
PdfListItemCreate a rich item from inline text runs.
Parameters
- runs System.Collections.Generic.IEnumerable{OfficeIMO.Pdf.TextRun}
- bookmarkName System.String = null
- marker System.String = null
Inherited Methods
Properties
public String Text { get; } #Plain text value for readback, wrapping fallback, and simple item APIs.
public IReadOnlyList<TextRun> 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.