# GrapeCity.Spreadsheet.Fill.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Fill__ctor_" data-uid="GrapeCity.Spreadsheet.Fill.#ctor*">Fill Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Fill__ctor_" data-uid="GrapeCity.Spreadsheet.Fill.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_Fill__ctor_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.Fill.#ctor(GrapeCity.Spreadsheet.Color)">Fill(Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.Fill.html">Fill</a> class which represents a solid pattern fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Fill(Color patternColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(patternColor 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="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">patternColor</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the pattern color of pattern fill.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Fill__ctor_" data-uid="GrapeCity.Spreadsheet.Fill.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_Fill__ctor_GrapeCity_Spreadsheet_PatternType_GrapeCity_Spreadsheet_Color_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.Fill.#ctor(GrapeCity.Spreadsheet.PatternType,GrapeCity.Spreadsheet.Color,GrapeCity.Spreadsheet.Color)">Fill(PatternType, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.Fill.html">Fill</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 Fill(PatternType parternType, Color patternColor = default, Color backgroundColor = default)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(parternType As PatternType, Optional patternColor As Color = Nothing, Optional backgroundColor As Color = Nothing)</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.Spreadsheet.PatternType.html">PatternType</a></td>
      <td><span class="parametername">parternType</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Fill.PatternType.html#GrapeCity_Spreadsheet_Fill_PatternType">PatternType</a> value indicates the type of pattern fill.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">patternColor</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the pattern color of pattern fill.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">backgroundColor</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the background color of pattern fill.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
