# GrapeCity.Spreadsheet.IInterior.PatternColorIndex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IInterior_PatternColorIndex_" data-uid="GrapeCity.Spreadsheet.IInterior.PatternColorIndex*">PatternColorIndex Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IInterior_PatternColorIndex_" data-uid="GrapeCity.Spreadsheet.IInterior.PatternColorIndex*"></a>
<h4 id="GrapeCity_Spreadsheet_IInterior_PatternColorIndex" data-uid="GrapeCity.Spreadsheet.IInterior.PatternColorIndex">PatternColorIndex</h4>
<div class="markdown level1 summary"><p>Gets or sets the color of the interior pattern as an index into the current color palette, or as one of the following constants: <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexAutomatic.html">ColorIndexAutomatic</a> or <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexNone.html">ColorIndexNone</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int PatternColorIndex { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Property PatternColorIndex As Integer</code></pre>
</div>
<h5 class="propertyValue">Property Value</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>An integer value represents the index of the pattern color.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_IInterior_PatternColorIndex_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The value returned by <a class="xref" href="GrapeCity.Spreadsheet.IInterior.PatternColorIndex.html#GrapeCity_Spreadsheet_IInterior_PatternColorIndex">PatternColorIndex</a> is different than the stored value from the internal storage.</p>
<p>Set this property to <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexAutomatic.html">ColorIndexAutomatic</a> to specify the automatic pattern for cells or the automatic fill style for drawing objects.</p><p>Set this property to <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexNone.html">ColorIndexNone</a> to specify that you don't want a pattern.</p>
</div>
</div>
