# GrapeCity.ActiveReports.Rendering.Tools.NameValueCollectionExtensions.ApplyTo

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Tools_NameValueCollectionExtensions_ApplyTo_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.NameValueCollectionExtensions.ApplyTo*">ApplyTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Tools_NameValueCollectionExtensions_ApplyTo_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.NameValueCollectionExtensions.ApplyTo*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Tools_NameValueCollectionExtensions_ApplyTo__1_System_Collections_Specialized_NameValueCollection___0_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.NameValueCollectionExtensions.ApplyTo``1(System.Collections.Specialized.NameValueCollection,``0,System.Boolean,System.Boolean)">ApplyTo&lt;T&gt;(NameValueCollection, T, bool, bool)</h4>
<div class="markdown level1 summary"><p>Applies settings from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.namevaluecollection">NameValueCollection</a> to the specified object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static T ApplyTo&lt;T&gt;(this NameValueCollection settings, T target, bool setInnerSetting = false, bool suppressExceptions = true)</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="https://learn.microsoft.com/dotnet/api/system.collections.specialized.namevaluecollection">NameValueCollection</a></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.namevaluecollection">NameValueCollection</a> containing the settings.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">target</span></td>
      <td><p>The object to apply the settings to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">setInnerSetting</span></td>
      <td><p>Indicates whether to set inner settings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">suppressExceptions</span></td>
      <td><p>Indicates whether to suppress exceptions.</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><span class="xref">T</span></td>
      <td><p>The target object with the applied settings.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of the target object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
