# C1.C1Excel.XLStyle.ForeColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLStyle_ForeColor_" data-uid="C1.C1Excel.XLStyle.ForeColor*">ForeColor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLStyle_ForeColor_" data-uid="C1.C1Excel.XLStyle.ForeColor*"></a>
<h4 id="C1_C1Excel_XLStyle_ForeColor" data-uid="C1.C1Excel.XLStyle.ForeColor">ForeColor</h4>
<div class="markdown level1 summary"><p>Gets or sets the foreground color for this <a class="xref" href="C1.C1Excel.XLStyle.html">XLStyle</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color ForeColor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ForeColor As Color</code></pre>
</div>
<h5 id="C1_C1Excel_XLStyle_ForeColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Set the <a class="xref" href="C1.C1Excel.XLStyle.ForeColor.html#C1_C1Excel_XLStyle_ForeColor">ForeColor</a> property to <b>Color.Transparent</b> to
suppress this style element and use the default foreground color instead (black).</p>
<p>All colors on the <a class="xref" href="C1.C1Excel.C1XLBook.html">C1XLBook</a> are mapped to a palette. This 
means that if you assign colors to styles, save the book, and then load it back, 
you probably won't get exactly the same colors used when the book was created. 
You will get a fairly close approximation though.</p>
</div>
</div>
