2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / Axis Class / ForeColor Property

In This Topic
    ForeColor Property (Axis)
    In This Topic
    Gets or sets the foreground color.
    Syntax
    'Declaration
     
    Public Property ForeColor As System.Drawing.Color
    public System.Drawing.Color ForeColor {get; set;}
    Remarks

    Inherits from the C1.Win.C1Chart.ChartArea. The ForeColor is used to set the color of the axis line and annotations.

    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.

    See Also