C# ZedGraph AxisChange()重置?

C# ZedGraph AxisChange()重置?,c#,zedgraph,C#,Zedgraph,我用的是C。当我使用AxisChange()调整图形上的轴时,它工作正常,直到我进入图形窗格并手动放大和缩小 手动放大和缩小后,AxisChange()命令不再工作。如何才能在修复轴后再次使用AxisChange()?我检查了AxisChange()方法的代码,我认为这是因为以下代码: // if the ChartRect is not yet determined, then pick a scale based on a default ChartRect

我用的是C。当我使用
AxisChange()
调整图形上的轴时,它工作正常,直到我进入图形窗格并手动放大和缩小


手动放大和缩小后,
AxisChange()
命令不再工作。如何才能在修复轴后再次使用
AxisChange()

我检查了AxisChange()方法的代码,我认为这是因为以下代码:

            // if the ChartRect is not yet determined, then pick a scale based on a default ChartRect
        // size (using 75% of Rect -- code is in Axis.CalcMaxLabels() )
        // With the scale picked, call CalcChartRect() so calculate a real ChartRect
        // then let the scales re-calculate to make sure that the assumption was ok
        if ( _chart._isRectAuto )
        {
            PickScale( g, scaleFactor );

            _chart._rect = CalcChartRect( g );
            //this.pieRect = PieItem.CalcPieRect( g, this, scaleFactor, this.chartRect );
        }

不过我不确定,你应该在“if”子句之外,尝试复制一行,看看会发生什么。无论如何,试着调试源代码,这足以让我理解。

你知道如何禁用手动缩放和调整大小,这样我就可以完全避免这种情况了吗?