Skip to main content
All docs
V25.2
  • TdxChartXYDiagramBeforeZoomEventArgs.Axis Property

    Provides access to the axis by which the target XY diagram is about to be zoomed.

    Declaration

    property Axis: TdxChartCustomAxis read;

    Property Value

    Type Description
    TdxChartCustomAxis

    The target axis.

    You need to cast this property value to the TdxChartAxisX or TdxChartAxisY class depending on the actual type of the target axis to access all axis public API members. Call the Axis.ClassType function to identify the actual axis type.

    Remarks

    Use the Axis property to identify and access the target axis of the pending zoom operation. To identify the new minimum and maximum visible axis scale values after the zoom operation, use NewRange.Min and NewRange.Max properties.

    To cancel the pending zoom operation, set the Cancel property to True in an OnBeforeZoom event handler.

    See Also