PeachPDF
PeachPDF.Layout
IListDescriptor Interface
Builds an ordered/unordered list’s items (OrderedList(Action<IListDescriptor>, PdfListMarkerType)/
UnorderedList(Action<IListDescriptor>, PdfListMarkerType)) - backed by PeachPDF’s existing display: list-item/
list-style-* support, not a from-scratch marker implementation. Call
Position(PdfListMarkerPosition)/MarkerImage(byte[])/MarkerText(string) before adding any
items - like any other CSS inherited property, a marker option only affects items added after it.
public interface IListDescriptor
| Methods | |
|---|---|
| Item() | Appends one list item and returns its content container. |
| MarkerImage(byte[]) | Uses an image (from raw bytes) as every item’s marker instead of the list’s own marker type. |
| MarkerImage(string) | Uses an image loaded from a local file path as every item’s marker. |
| MarkerImage(Stream) | Uses an image (read fully from a stream) as every item’s marker. |
| MarkerImage(Uri) | Uses an image loaded over the network as every item’s marker. |
| MarkerText(string) | Uses a literal custom marker string (e.g. "-> ") for every item, instead of a counted/bulleted style. |
| Position(PdfListMarkerPosition) | Sets whether the marker sits inside or outside each item’s own content box. |