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

In This Topic
    ResetForeColor Method (Axis)
    In This Topic
    Resets the inheritance state of the axis forecolor.
    Syntax
    'Declaration
     
    Public Sub ResetForeColor() 
    public void ResetForeColor()
    Remarks
    This method resets the inheritance state of the axis forecolor. By default, the forecolor used for the axis is that specified by the ChartArea style. In the inherited state, any changes to the ChartArea style are reflected in the axis forecolor. However, if the forecolor for the axis is explicitly changed, changing the ChartArea style forecolor no longer affects the axis style. Calling ResetForecolor() restores the inherited state, so once again the forecolor used by the axis will be the same as that specified by the ChartArea style.
    See Also