Method ResolveSpanFormatting
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
documentWordDocumentThe document that holds the span.
spanDocumentSpanThe span.
optionsResolveOptionsThe options; null for the defaults.
Returns
- SpanFormatting
The formatting in effect.
Exceptions
- ArgumentNullException
documentis null.- ArgumentException
The span is default or not in
document.