[]
Represents options for a find and replace operation.
public class FindReplaceOptions : FindOptions
Initializes a new instance of the FindReplaceOptions class.
public FindReplaceOptions(DocumentBase document)
document
DocumentBaseThe target document for the find/replace operation.
Gets or sets a value indicating whether empty runs that appeared as the result of a replace operation should be removed.
The default is false.
public bool RemoveEmptyRuns { get; set; }
Specifying an empty search string and setting this property to true will remove all empty runs.
Gets or sets a callback action that is called for each found instance after the replacement has been done.
public Action<ReplacedArgs> ReplacedCallback { get; set; }
Gets or sets a callback function that is called for each found instance prior to the replacement. The return value of the function specifies the action that should be taken.
public Func<ReplacingArgs, ReplaceAction> ReplacingCallback { get; set; }