Back to Devexpress

HeatmapControl.EnableAxisYScrolling Property

windowsforms-devexpress-dot-xtracharts-dot-heatmap-dot-heatmapcontrol-58885e69.md

latest6.0 KB
Original Source

HeatmapControl.EnableAxisYScrolling Property

Specifies whether a user can scroll the heatmap vertically.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[DefaultValue(false)]
public bool EnableAxisYScrolling { get; set; }
vb
<DefaultValue(False)>
Public Property EnableAxisYScrolling As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the heatmap can be scrolled vertically (along a y-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:

csharp
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;
        }
    }
}
vb
Imports DevExpress.XtraCharts.Heatmap

Namespace HeatmapChart
    Public Partial Class Form1
        Inherits Form

        Public Sub New()
            InitializeComponent()
            Dim heatmap As HeatmapControl = New HeatmapControl()
            Me.Controls.Add(heatmap)
            '...
            heatmap.EnableAxisXScrolling = True
            heatmap.EnableAxisYScrolling = True
            heatmap.EnableAxisXZooming = True
            heatmap.EnableAxisYZooming = True
        End Sub
    End Class
End Namespace

The following code snippets (auto-collected from DevExpress Examples) contain references to the EnableAxisYScrolling 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.

winforms-heatmap-bind-to-data-source/CS/Form1.cs#L59

csharp
heatmap.EnableAxisXScrolling = true;
heatmap.EnableAxisYScrolling = true;
heatmap.EnableAxisXZooming = true;

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/Heatmap/HeatmapItemControlProvider.cs#L40

csharp
heatmap.EnableAxisXZooming = heatmap.EnableAxisXScrolling = dashboardItem.Metadata.EnableZoomingXAxis;
heatmap.EnableAxisYZooming = heatmap.EnableAxisYScrolling = dashboardItem.Metadata.EnableZoomingYAxis;
ClearDataBindings();

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/Heatmap/HeatmapItemControlProvider.vb#L47

vb
heatmap.EnableAxisXZooming = heatmap.EnableAxisXScrolling
heatmap.EnableAxisYScrolling = dashboardItem.Metadata.EnableZoomingYAxis
heatmap.EnableAxisYZooming = heatmap.EnableAxisYScrolling

winforms-heatmap-bind-to-data-source/VB/Form1.vb#L38

vb
Me.heatmap.EnableAxisXScrolling = True
Me.heatmap.EnableAxisYScrolling = True
Me.heatmap.EnableAxisXZooming = True

See Also

HeatmapControl Class

HeatmapControl Members

DevExpress.XtraCharts.Heatmap Namespace