# GrapeCity.ActiveReports.Rendering.Components.Dashboard.TextStyle.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Components_Dashboard_TextStyle__ctor_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Dashboard.TextStyle.#ctor*">TextStyle Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Components_Dashboard_TextStyle__ctor_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Dashboard.TextStyle.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Dashboard_TextStyle__ctor_System_String_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_Drawing_FontStyleEx_System_Drawing_Color_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Dashboard.TextStyle.#ctor(System.String,GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.Drawing.FontStyleEx,System.Drawing.Color)">TextStyle(string, Length, FontStyleEx, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Rendering.Components.Dashboard.TextStyle.html">TextStyle</a> class with the specified font family, font size, font style, and color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextStyle(string fontFamily, Length fontSize, FontStyleEx fontStyle, Color color)</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">fontFamily</span></td>
      <td><p>The font family.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a></td>
      <td><span class="parametername">fontSize</span></td>
      <td><p>The font size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.FontStyleEx.html">FontStyleEx</a></td>
      <td><span class="parametername">fontStyle</span></td>
      <td><p>The font style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color of the font.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
