# GrapeCity.Win.Spread.InputMan.CellType.Style.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor*">Style Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor">Style()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Style()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor(System.Drawing.Color,System.Drawing.Color)">Style(Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> class with the specified initialization properties.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Style(Color backColor, Color foreColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(backColor As Color, foreColor As 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.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> of the background.</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">foreColor</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> of the foreground.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_Style__ctor_System_Drawing_Color_GrapeCity_Win_Spread_InputMan_CellType_Bevel_System_Drawing_Color_System_Windows_Forms_BorderStyle_System_Drawing_Font_GrapeCity_Win_Spread_InputMan_CellType_TextEffect_System_Drawing_Color_System_Drawing_ContentAlignment_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Style.#ctor(System.Drawing.Color,GrapeCity.Win.Spread.InputMan.CellType.Bevel,System.Drawing.Color,System.Windows.Forms.BorderStyle,System.Drawing.Font,GrapeCity.Win.Spread.InputMan.CellType.TextEffect,System.Drawing.Color,System.Drawing.ContentAlignment)">Style(Color, Bevel, Color, BorderStyle, Font, TextEffect, Color, ContentAlignment)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Style(Color backColor, Bevel bevel, Color borderColor, BorderStyle borderStyle, Font font, TextEffect textEffect, Color foreColor, ContentAlignment contentAlignment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(backColor As Color, bevel As Bevel, borderColor As Color, borderStyle As BorderStyle, font As Font, textEffect As TextEffect, foreColor As Color, contentAlignment As ContentAlignment)</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.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> of the background.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Bevel.html">Bevel</a></td>
      <td><span class="parametername">bevel</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.Bevel.html#GrapeCity_Win_Spread_InputMan_CellType_Style_Bevel">Bevel</a> value that indicates the bevel effect.</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">borderColor</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> of the border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.borderstyle">BorderStyle</a></td>
      <td><span class="parametername">borderStyle</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.BorderStyle.html#GrapeCity_Win_Spread_InputMan_CellType_Style_BorderStyle">BorderStyle</a> value that indicates the border style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.Font.html#GrapeCity_Win_Spread_InputMan_CellType_Style_Font">Font</a> value that indicates the font.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.TextEffect.html">TextEffect</a></td>
      <td><span class="parametername">textEffect</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.TextEffect.html#GrapeCity_Win_Spread_InputMan_CellType_Style_TextEffect">TextEffect</a> value that indicates the text effect.</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">foreColor</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value of the foreground.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a></td>
      <td><span class="parametername">contentAlignment</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.ContentAlignment.html#GrapeCity_Win_Spread_InputMan_CellType_Style_ContentAlignment">ContentAlignment</a> value that indicates the content alignment.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
