# C1.Win.C1Chart.Axis.ForeColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_Axis_ForeColor_" data-uid="C1.Win.C1Chart.Axis.ForeColor*">ForeColor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_Axis_ForeColor_" data-uid="C1.Win.C1Chart.Axis.ForeColor*"></a>
<h4 id="C1_Win_C1Chart_Axis_ForeColor" data-uid="C1.Win.C1Chart.Axis.ForeColor">ForeColor</h4>
<div class="markdown level1 summary"><p>Gets or sets the foreground color.</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_Win_C1Chart_Axis_ForeColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Inherits from the <span class="xref">C1.Win.C1Chart.ChartArea</span>.
The ForeColor is used to set the color of the axis line and annotations.
</p>
<p>
Associated with the ForeColor Property, is the ResetForeColor() method.
This method restores the inheritance state for the axis forecolor.
If a forecolor is explicitly set for an axis, it no longer inherits from the ChartArea,
so changing the ChartArea forecolor no longer affects or changes the axis value.
Calling ResetForecolor () restores the inherited state so changes to the ChartArea
font will once again change the axis forecolor.
</p>
</div>
<h5 id="C1_Win_C1Chart_Axis_ForeColor_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart.Axis.html">Axis</a></div>
</div>
</div>
