Axis.IntervalAutoMode Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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

public IntervalAutoMode IntervalAutoMode { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode

An IntervalAutoMode enumeration value. The default value is FixedCount.

When the Interval property is set to "Auto", the IntervalAutoMode property determines how many intervals should be calculated. 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.

.NET Framework
Available since 4.0
Return to top
Show: