Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordParagraphInfo

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Text, formatting, list, border, bookmark, and pagination state for one paragraph.

Inheritance

Usage

Explore 4 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.

Constructors

public WordParagraphInfo() #

Creates an empty paragraph snapshot.

Properties

public string Text { get; internal set; } #

Gets text extracted from the paragraph's runs, including text hidden by run formatting.

public string? StyleId { get; internal set; } #

Gets the applied paragraph style identifier.

public string? StyleName { get; internal set; } #

Gets the OfficeIMO built-in paragraph-style classification, or the document style name for a custom classification when available; otherwise Custom.

public bool IsListItem { get; internal set; } #

Gets whether the paragraph participates in numbering.

public bool? IsOrderedList { get; internal set; } #

Gets whether list numbering is ordered, or null when not resolved.

public int? ListLevel { get; internal set; } #

Gets the zero-based list nesting level.

public string? ListMarker { get; internal set; } #

Gets the resolved portable marker text, without its following tab or space, for a body or header/footer list item. An invisible marker is empty; an unresolved or non-list paragraph returns null.

public int? ListIndex { get; internal set; } #

Gets the resolved ordered-list counter at this nesting level, accounting for continuation and explicit restarts, or null for unordered or unresolved paragraphs.

public string? ListStyleName { get; internal set; } #

Gets the OfficeIMO list-style classification.

public string? Alignment { get; internal set; } #

Gets the paragraph alignment authored directly on the paragraph, without resolving inherited styles.

public OfficeLength? IndentStart { get; internal set; } #

Gets leading indentation.

public OfficeLength? IndentEnd { get; internal set; } #

Gets trailing indentation.

public OfficeLength? IndentFirstLine { get; internal set; } #

Gets first-line indentation; negative values represent hanging indents.

public OfficeLength? SpaceAbove { get; internal set; } #

Gets spacing above the paragraph.

public OfficeLength? SpaceBelow { get; internal set; } #

Gets spacing below the paragraph.

public WordLineSpacing? LineSpacing { get; internal set; } #

Gets directly authored spacing in line multiples or physical height.

public OfficeColor? ShadingFillColor { get; internal set; } #

Gets the authored paragraph-shading fill color; automatic fills read as null.

public WordShadingPattern? ShadingPattern { get; internal set; } #

Paragraph shading pattern, when explicitly authored.

public WordParagraphBorderInfo? LeftBorder { get; internal set; } #

Gets the left paragraph border.

public WordParagraphBorderInfo? RightBorder { get; internal set; } #

Gets the right paragraph border.

public WordParagraphBorderInfo? TopBorder { get; internal set; } #

Gets the top paragraph border.

public WordParagraphBorderInfo? BottomBorder { get; internal set; } #

Gets the bottom paragraph border.

public bool IsRightToLeft { get; internal set; } #

Gets directly authored right-to-left layout without resolving paragraph styles.

public bool KeepWithNext { get; internal set; } #

Gets directly authored keep-with-next formatting without resolving paragraph styles.

public bool KeepLinesTogether { get; internal set; } #

Gets directly authored keep-lines-together formatting without resolving paragraph styles.

public bool AvoidWidowAndOrphan { get; internal set; } #

Gets directly authored widow and orphan control without resolving paragraph styles.

public bool PageBreakBefore { get; internal set; } #

Gets directly authored page-break-before formatting without resolving paragraph styles.

public string? BookmarkName { get; internal set; } #

Gets the first bookmark name associated with the paragraph.

public int? BookmarkId { get; internal set; } #

Gets the first bookmark identifier associated with the paragraph.

public IReadOnlyList<WordRunInfo> Runs { get; } #

Gets text runs in source order.

public IReadOnlyList<WordInlineFieldInfo> InlineFields { get; } #

Simple fields and their positions among the paragraph's ordinary runs.

public IReadOnlyList<WordTabStopInfo> TabStops { get; } #

Gets explicit paragraph tab stops.