IWorkPagesNumberedList
OfficeIMO.IWork
Owns a decimal list whose items occupy separate paragraphs in one newly created Pages document.
Inheritance
- object
- IWorkPagesNumberedList
Remarks
Items use nine non-tiered levels and half-point font sizes. Markers remain plain black in the list's font family; their size follows the first character run. Rich runs can vary their size, font family, opaque color and character decorations. Plain paragraphs and attachments preserve counters. Returning to this list after another list resumes its counters. Advancing or restarting a parent resets all its descendant counters. Instances are not thread safe.
Usage
Explore 3 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 3
Methods
public IWorkPagesParagraphData AddItem(string text, int level = 0, int? restartAt = null, IWorkPagesParagraphLayout? layout = null) #Adds one numbered body paragraph, continuing its level unless a positive restart is supplied.
Parameters
- text string
- Item text without line breaks. TAB text requires an explicit layout.
- level int = 0
- Zero-based native level from zero through eight. A nested item requires an earlier parent at the preceding level in this list.
- restartAt int? = null
- Optional positive counter value. The first parent starts at one by default.
- layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null
- Optional immutable paragraph spacing and tab stops.
Returns
IWorkPagesParagraphDatapublic IWorkPagesParagraphData AddRichItem(IEnumerable<IWorkTextRunData> runs, int level = 0, int? restartAt = null, IWorkPagesParagraphLayout? layout = null) #Adds a snapshot of rich character runs as one numbered body paragraph.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.IWork.IWorkTextRunData>
- Runs with half-point sizes. Sizes, font families, opaque colors and character decorations may vary.
- level int = 0
- Zero-based native level from zero through eight. A nested item requires an earlier parent at the preceding level in this list.
- restartAt int? = null
- Optional positive counter value. The first parent starts at one by default.
- layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null
- Optional immutable paragraph spacing and tab stops.
Returns
IWorkPagesParagraphDataInherited Methods
Properties
public string FontName { get; } #Gets the marker font and default body font.
public float FontSizePoints { get; } #Gets the default body size in half-point increments, also used for paragraph-relative indentation.
public IWorkDecimalListMarkerStyle MarkerStyle { get; } #Gets the decimal marker punctuation shared by every level of this list.
public IReadOnlyList<IWorkPagesParagraphData> Items { get; } #Gets this list's items in their body insertion order.