Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

IWorkPagesNumberedList

OfficeIMO.IWork

Namespace
OfficeIMO.IWork
Assembly
OfficeIMO.IWork
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

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.

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 required
Item text without line breaks. TAB text requires an explicit layout.
level int = 0 optional
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
Optional positive counter value. The first parent starts at one by default.
layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null optional
Optional immutable paragraph spacing and tab stops.
public 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> required
Runs with half-point sizes. Sizes, font families, opaque colors and character decorations may vary.
level int = 0 optional
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
Optional positive counter value. The first parent starts at one by default.
layout OfficeIMO.IWork.IWorkPagesParagraphLayout? = null optional
Optional immutable paragraph spacing and tab stops.

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.