# GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.Replace

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_Replace_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.Replace*">Replace Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_Replace_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.Replace*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_Replace_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Func_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Tuple_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Boolean___" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.Replace(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Func{GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Tuple{GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Boolean}})">Replace(ExpressionInfo, Func&lt;ExpressionInfo, Tuple&lt;ExpressionInfo, bool&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Replaces parts of the expression based on the provided function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ExpressionInfo Replace(this ExpressionInfo expr, Func&lt;ExpressionInfo, Tuple&lt;ExpressionInfo, bool&gt;&gt; replaceFn)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><span class="parametername">expr</span></td>
      <td><p>An <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> object to process.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.tuple-2">Tuple</a>&lt;<a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;&gt;</td>
      <td><span class="parametername">replaceFn</span></td>
      <td><p>The function used to replace parts of the expression.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><p>A modified <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
