Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Pane.SetAxisXZoomRatio(Double) Method

Change the current zoom value for the pane X-axis to the specified zoom ratio.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void SetAxisXZoomRatio(
    double ratio
)

#Parameters

Name Type Description
ratio Double

A Double value that specifies a new pane zoom ratio. It should be greater than 0 and less than or equal to 1.

#Remarks

Use the SetAxisXZoomRatio and Pane.SetAxisYZoomRatio methods to change the current zoom value for the X and Y axis of the Pane.

Note that the ratio parameter, which should be passed to these methods, can be set to any double value from 0 (no zoom at all) to 1 (the maximum possible zoom value).

See Also