Axis.IntervalAutoMode 属性


获取或设置一个标志,该标志确定是在轴上使用固定数目的间隔,还是根据轴的大小确定间隔数。Gets or sets a flag that determines if a fixed number of intervals is used on the axis, or if the number of intervals depends on the axis size.

 property System::Windows::Forms::DataVisualization::Charting::IntervalAutoMode IntervalAutoMode { System::Windows::Forms::DataVisualization::Charting::IntervalAutoMode get(); void set(System::Windows::Forms::DataVisualization::Charting::IntervalAutoMode value); };
public System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode IntervalAutoMode { get; set; }
member this.IntervalAutoMode : System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode with get, set
Public Property IntervalAutoMode As IntervalAutoMode


一个 IntervalAutoMode 枚举值。An IntervalAutoMode enumeration value. 默认值为 FixedCountThe default value is FixedCount.


当属性设置为 "Auto" 时IntervalAutoMode , 属性确定应计算的间隔数。 IntervalWhen the Interval property is set to "Auto", the IntervalAutoMode property determines how many intervals should be calculated. 如果经常调整图表的大小或进行重绘, 则可以IntervalAutoMode将属性VariableCount设置为, 在这种情况下, 图表会动态计算轴间隔。If your chart is resized or redrawn often, you can set the IntervalAutoMode property to VariableCount, in which case the chart will dynamically calculate axis intervals. 如果图表间隔显示方式不同, 具体取决于它们的数据, 这种方法特别有用。This is especially useful in situations where the chart intervals are displayed differently, depending on their data.