# GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_IStyleSheetService_GetStyle_" data-uid="GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle*">GetStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_IStyleSheetService_GetStyle_" data-uid="GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_IStyleSheetService_GetStyle_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle(System.String)">GetStyle(string)</h4>
<div class="markdown level1 summary"><p>Gets evaluated style by specified name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Style GetStyle(string styleName)</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.string">string</a></td>
      <td><span class="parametername">styleName</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a> indicating the name of the <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object.</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.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a></td>
      <td><p>The evaluated style if <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object whith specified name found in the report's stylesheet; otherwise, default style.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_IStyleSheetService_GetStyle_" data-uid="GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_IStyleSheetService_GetStyle_System_Int32_" data-uid="GrapeCity.ActiveReports.Rendering.IStyleSheetService.GetStyle(System.Int32)">GetStyle(int)</h4>
<div class="markdown level1 summary"><p>Gets evaluated style by specified heading level.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Style GetStyle(int level)</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.int32">int</a></td>
      <td><span class="parametername">level</span></td>
      <td><p>A zero-based <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Integer</a> indicating the value of HeadingLevel property of the <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object.</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.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a></td>
      <td><p>The evaluated style if <a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Style.html">Style</a> object whith specified heading level found in the report's stylesheet; otherwise, default style.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
