Back to Devexpress

ZoomingOptions2D.AxisXMaxZoomPercent Property

corelibraries-devexpress-dot-xtracharts-dot-zoomingoptions2d-4f3eb2cf.md

latest2.3 KB
Original Source

ZoomingOptions2D.AxisXMaxZoomPercent Property

Gets or sets the maximum zoom factor as a percentage for the X-axis.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public double AxisXMaxZoomPercent { get; set; }
vb
Public Property AxisXMaxZoomPercent As Double

Property Value

TypeDescription
Double

A zoom factor percentage value.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AxisXMaxZoomPercent
XYDiagram2D

.ZoomingOptions .AxisXMaxZoomPercent

|

Remarks

The AxisXMaxZoomPercent and ZoomingOptions2D.AxisYMaxZoomPercent properties specify zoom limits. Set these properties to 100 or higher. When a user reaches the limits, the mouse pointer changes to .

Use the following code to specify the maximum zoom value for the X and Y axes:

csharp
XYDiagram diagram =(XYDiagram)chartControl1.Diagram;
diagram.ZoomingOptions.AxisXMaxZoomPercent = 500;
diagram.ZoomingOptions.AxisYMaxZoomPercent = 500;
vb
Dim diagram As XYDiagram = CType(chartControl1.Diagram, XYDiagram)
diagram.ZoomingOptions.AxisXMaxZoomPercent = 500
diagram.ZoomingOptions.AxisYMaxZoomPercent = 500

See Also

ZoomingOptions2D Class

ZoomingOptions2D Members

DevExpress.XtraCharts Namespace