Table of Contents

Method GetCoveredParagraphs

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

GetCoveredParagraphs(DocumentSpan)

Returns what a span covers, paragraph by paragraph in document order, as FormatText(WordDocument, DocumentSpan, Action<CharacterFormat>) reaches it: the direct character formatting of each piece of run content and whether the paragraph's mark is covered. For an empty span the one entry is the formatting text typed there takes, as InsertText(WordDocument, DocumentPosition, string, CharacterFormat?) gives it. A style resolver turns these into the formatting in effect (StyleResolver.ResolveSpanFormatting).

public static IReadOnlyList<CoveredParagraph> GetCoveredParagraphs(this DocumentSpan span)

Parameters

span DocumentSpan

The span.

Returns

IReadOnlyList<CoveredParagraph>

The covered paragraphs.

Exceptions

ArgumentException

The span is default.