Skip to main content
All docs
V26.1
  • NavigationOptions.EnableZoomToRectangle Property

    Gets or sets whether a user can press SHIFT and select a rectangular chart region to zoom into it (marquee zoom).’

    Namespace: DevExpress.Xpf.Charts

    Assembly: DevExpress.Xpf.Charts.v26.1.dll

    Declaration

    public bool EnableZoomToRectangle { get; set; }

    Property Value

    Type Default Description
    Boolean True

    true to allow users to zoom into a rectangular region selected with SHIFT + the left mouse click; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to EnableZoomToRectangle
    XYDiagram2D
    .NavigationOptions .EnableZoomToRectangle

    Remarks

    The EnableZoomToRectangle property controls the SHIFT + mouse drag only:

    • The zoom action requires mouse navigation. Set the UseMouse property to true.
    • When the EnableZoomToRectangle property is set to false, a SHIFT + drag action pans the diagram instead of selecting a region to zoom into.
    • The EnableZoomToRectangle property does not affect mouse wheel zoom, SHIFT + click zoom, or the XYDiagram2D.ZoomIntoRectangle(Rect) method.

    Refer to the following section for additional information: Zoom and Scroll in 2D XY-Charts

    See Also