Class DocxParagraph
- Namespace
- PDiffy
- Assembly
- PDiffy.dll
A paragraph: its style, list item, layout, text and what sits in the text.
public sealed record DocxParagraph : DocxBlock, IEquatable<DocxBlock>, IEquatable<DocxParagraph>
- Inheritance
-
DocxParagraph
- Implements
- Inherited Members
Properties
EndsSection
The section this paragraph ends, numbered from 1, or null.
public int? EndsSection { get; init; }
Property Value
- int?
Inlines
What sits in the text, in reading order: images, links, bookmarks, symbols, fields, page or column breaks, and stray text from runs in the paragraph's properties.
public IReadOnlyList<DocxInline> Inlines { get; init; }
Property Value
List
The list item this paragraph is, or null when it isn't one.
public DocxListItem? List { get; init; }
Property Value
ParagraphFormat
How the paragraph is laid out: its style's layout with the paragraph's own formatting on top.
public DocxParagraphFormat ParagraphFormat { get; init; }
Property Value
RunFormat
How the paragraph's text looks by default: document defaults and its style.
public DocxRunFormat RunFormat { get; init; }
Property Value
Spans
The text cut where its look changes, each part with its full formatting.
public IReadOnlyList<DocxSpan> Spans { get; init; }
Property Value
Style
The paragraph style's id: the one named, or the document's default paragraph style.
public string? Style { get; init; }
Property Value
Text
The whole text with runs merged. Tabs are \t and line breaks \n.
public string Text { get; init; }