# GrapeCity.ActiveReports.PageReportModel.Style.Merge

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_Style_Merge_" data-uid="GrapeCity.ActiveReports.PageReportModel.Style.Merge*">Merge Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Style_Merge_" data-uid="GrapeCity.ActiveReports.PageReportModel.Style.Merge*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Style_Merge_GrapeCity_ActiveReports_PageReportModel_Style_GrapeCity_ActiveReports_PageReportModel_Style_" data-uid="GrapeCity.ActiveReports.PageReportModel.Style.Merge(GrapeCity.ActiveReports.PageReportModel.Style,GrapeCity.ActiveReports.PageReportModel.Style)">Merge(Style, Style)</h4>
<div class="markdown level1 summary"><p>Merges a specified report item style with an external style from a stylesheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Style Merge(Style local, Style external)</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="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a></td>
      <td><span class="parametername">local</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object of the report element.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a></td>
      <td><span class="parametername">external</span></td>
      <td><p>An external <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object obtained from the stylesheet.
If this parameter is <code>null</code>, the default style will be used.</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="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object representing the merged style.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Style_Merge_GrapeCity_ActiveReports_PageReportModel_Style_GrapeCity_ActiveReports_PageReportModel_Style__examples">Examples</h5>
<p>An example of how to merge with the default style:</p>
<pre><code class="lang-csharp">Style style = new Style { BackgroundColor = "White" };
Style newStyle = Style.Merge(style, null);</code></pre>
<p>An example of how to merge with the different style:</p>
<pre><code class="lang-csharp">TextBox textBox = new TextBox();
textBox.Style.TextAlign = TextAlign.Justify;

Style style = new Style { BackgroundColor = "Red" };

Style newStyle = Style.Merge(textBox.Style, style);</code></pre>

</div>
