Table of Contents

Method ResolveSpanFormatting

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

ResolveSpanFormatting(WordDocument, DocumentSpan, ResolveOptions?)

Resolves the formatting in effect over a span: for each paragraph it touches, the resolved paragraph properties, list numbering and mark formatting, and the resolved character properties of each piece of run content it covers (for an empty span, of the text typed there), equal to what Resolve(WordDocument, ResolveOptions?) gives the same content. It resolves the paragraphs of the span (and, for a paragraph in a table, that table's style), not the document.

public static SpanFormatting ResolveSpanFormatting(WordDocument document, DocumentSpan span, ResolveOptions? options = null)

Parameters

document WordDocument

The document that holds the span.

span DocumentSpan

The span.

options ResolveOptions

The options; null for the defaults.

Returns

SpanFormatting

The formatting in effect.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The span is default or not in document.