Table of Contents

Class ReplaceOptions

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

How a replacement is formatted and how the document is tidied afterwards.

public sealed class ReplaceOptions
Inheritance
ReplaceOptions
Inherited Members

Constructors

ReplaceOptions()

Properties

CoalesceRuns

Gets or sets a value indicating whether adjacent runs with identical formatting are merged after replacing. Default true.

Without it every replacement leaves the paragraph one run more fragmented than it found it, and a document edited repeatedly grows run count without bound even though its text never changes.

Formatting

Gets or sets the formatting of the replacement text, or null to inherit the formatting of the first run the match started in — which is what makes replacing a word inside a sentence keep looking like the sentence.