RecalculateAxesScale Method
Collapse the table of content
Expand the table of content

ChartArea.RecalculateAxesScale Method ()

.NET Framework (current version)

Recalculates the properties of the chart area after changes have been made to the chart in the Customize event.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public void RecalculateAxesScale()

If you use the Customize event to make changes, it is sometimes necessary to recalculate chart area properties so that the chart is rendered correctly. For example, if an axis range is changed, the labels for that axis must be recalculated.

Call this method after you use the Customize event to make ANY changes to a chart area.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft