Skip to main content
All docs
V25.1
  • TdxChartXYDiagramBeforeZoomEvent Type

    The procedural type for zoom operation initiation events in an XY diagram.

    Declaration

    TdxChartXYDiagramBeforeZoomEvent = procedure(Sender: TdxChartXYDiagram; AArgs: TdxChartXYDiagramBeforeZoomEventArgs) of object;

    Parameters

    Name Type Description
    Sender TdxChartXYDiagram

    Provides access to the XY diagram that raised the current zoom initiation event.

    AArgs TdxChartXYDiagramBeforeZoomEventArgs

    Provides access to information related to the current zoom initiation event. You can set the AArgs.Cancel property to True to cancel the pending zoom operation depending on certain conditions.

    Remarks

    You can use AArgs.Axis and AArgs.NewRange properties to identify the target axis for the pending zoom operation and the new visible minimum and maximum scale values after the operation. Refer to the TdxChartXYDiagramBeforeZoomEventArgs class description for detailed information on available options.

    An XY diagram‘s OnBeforeZoom event references the TdxChartXYDiagramBeforeZoomEvent procedural type.

    See Also