Skip to main content
All docs
V24.1

HeatmapControl.EnableAxisXZooming Property

Specifies whether a user can zoom the heatmap horizontally.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v24.1.UI.dll

NuGet Package: DevExpress.Win.Charts

Declaration

[DefaultValue(false)]
public bool EnableAxisXZooming { get; set; }

Property Value

Type Default Description
Boolean false

true if the heatmap can be zoomed horizontally (along an x-axis); otherwise, false.

Remarks

The following properties allow you to enable navigation in the Heatmap Control:

To check whether zoom or scroll operations are available, use the IsScrollingEnabled and IsZoomingEnabled properties.

Use the methods below to zoom and scroll a heatmap programmatically:

Call the HeatmapControl.ResetZoom() method to reset the current zoom state to the default value.

Example

The following code enables zoom and scroll operations in a heatmap:

using DevExpress.XtraCharts.Heatmap;

namespace HeatmapChart {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();

            HeatmapControl heatmap = new HeatmapControl();
            this.Controls.Add(heatmap);
            //...
            heatmap.EnableAxisXScrolling = true;
            heatmap.EnableAxisYScrolling = true;
            heatmap.EnableAxisXZooming = true;
            heatmap.EnableAxisYZooming = true;
        }
    }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the EnableAxisXZooming property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also