# GrapeCity.Documents.Word.FindReplaceOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_FindReplaceOptions" data-uid="GrapeCity.Documents.Word.FindReplaceOptions" class="text-break">FindReplaceOptions Class
</h1>
  <div class="markdown level0 summary"><p>Represents options for a find and replace operation.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.FindOptions.html">FindOptions</a></div>
    <div class="level2"><span class="xref">FindReplaceOptions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_FindReplaceOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FindReplaceOptions : FindOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FindReplaceOptions
    Inherits FindOptions</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_FindReplaceOptions__ctor_GrapeCity_Documents_Word_DocumentBase_" data-uid="GrapeCity.Documents.Word.FindReplaceOptions.#ctor(GrapeCity.Documents.Word.DocumentBase)">
          <a class="xref" href="GrapeCity.Documents.Word.FindReplaceOptions.-ctor.html#GrapeCity_Documents_Word_FindReplaceOptions__ctor_GrapeCity_Documents_Word_DocumentBase_">FindReplaceOptions(DocumentBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.FindReplaceOptions.html">FindReplaceOptions</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_FindReplaceOptions_RemoveEmptyRuns" data-uid="GrapeCity.Documents.Word.FindReplaceOptions.RemoveEmptyRuns">
          <a class="xref" href="GrapeCity.Documents.Word.FindReplaceOptions.RemoveEmptyRuns.html#GrapeCity_Documents_Word_FindReplaceOptions_RemoveEmptyRuns">RemoveEmptyRuns</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether empty runs that appeared as the result of a replace operation
should be removed.</p>
<p>The default is false.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FindReplaceOptions_ReplacedCallback" data-uid="GrapeCity.Documents.Word.FindReplaceOptions.ReplacedCallback">
          <a class="xref" href="GrapeCity.Documents.Word.FindReplaceOptions.ReplacedCallback.html#GrapeCity_Documents_Word_FindReplaceOptions_ReplacedCallback">ReplacedCallback</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a callback action that is called for each found instance after the replacement has been done.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FindReplaceOptions_ReplacingCallback" data-uid="GrapeCity.Documents.Word.FindReplaceOptions.ReplacingCallback">
          <a class="xref" href="GrapeCity.Documents.Word.FindReplaceOptions.ReplacingCallback.html#GrapeCity_Documents_Word_FindReplaceOptions_ReplacingCallback">ReplacingCallback</a>
        </td>
        <td class="markdown level1 summary"><p>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.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
