Skip to main content

ChartZoomEventArgs Class

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Provides data for chart zoom events.

public class ChartZoomEventArgs

Inheritance: EventArgs -> ChartZoomEventArgs

Constructors

NameDescription
ChartZoomEventArgsNo summary available.

ChartZoomEventArgs Constructor

public ChartZoomEventArgs()

Properties

NameDescription
AxisGets the axis being zoomed (if applicable).
CurrentZoomFactorGets the zoom factor after the zoom operation.
CurrentZoomPositionGets the zoom position after the zoom operation.
PreviousViewportMaxXGets the maximum X value of the visible viewport before the zoom operation.
PreviousViewportMaxYGets the maximum Y value of the visible viewport before the zoom operation.
PreviousViewportMinXGets the minimum X value of the visible viewport before the zoom operation.
PreviousViewportMinYGets the minimum Y value of the visible viewport before the zoom operation.
PreviousZoomFactorGets the zoom factor before the zoom operation. A value of 1.0 means 100% (no zoom), 2.0 means zoomed in 2x.
PreviousZoomPositionGets the zoom position before the zoom operation. Value ranges from 0 to 1, representing the start position of the visible range.
ViewportMaxXGets the maximum X value of the visible viewport.
ViewportMaxYGets the maximum Y value of the visible viewport.
ViewportMinXGets the minimum X value of the visible viewport.
ViewportMinYGets the minimum Y value of the visible viewport.

Axis Property

Gets the axis being zoomed (if applicable).

public Avalonia.Controls.Charts.ChartAxis Axis { get; set; }

CurrentZoomFactor Property

Gets the zoom factor after the zoom operation.

public double CurrentZoomFactor { get; set; }

CurrentZoomPosition Property

Gets the zoom position after the zoom operation.

public double CurrentZoomPosition { get; set; }

PreviousViewportMaxX Property

Gets the maximum X value of the visible viewport before the zoom operation.

public Nullable<double> PreviousViewportMaxX { get; set; }

PreviousViewportMaxY Property

Gets the maximum Y value of the visible viewport before the zoom operation.

public Nullable<double> PreviousViewportMaxY { get; set; }

PreviousViewportMinX Property

Gets the minimum X value of the visible viewport before the zoom operation.

public Nullable<double> PreviousViewportMinX { get; set; }

PreviousViewportMinY Property

Gets the minimum Y value of the visible viewport before the zoom operation.

public Nullable<double> PreviousViewportMinY { get; set; }

PreviousZoomFactor Property

Gets the zoom factor before the zoom operation. A value of 1.0 means 100% (no zoom), 2.0 means zoomed in 2x.

public double PreviousZoomFactor { get; set; }

PreviousZoomPosition Property

Gets the zoom position before the zoom operation. Value ranges from 0 to 1, representing the start position of the visible range.

public double PreviousZoomPosition { get; set; }

ViewportMaxX Property

Gets the maximum X value of the visible viewport.

public double ViewportMaxX { get; set; }

ViewportMaxY Property

Gets the maximum Y value of the visible viewport.

public double ViewportMaxY { get; set; }

ViewportMinX Property

Gets the minimum X value of the visible viewport.

public double ViewportMinX { get; set; }

ViewportMinY Property

Gets the minimum Y value of the visible viewport.

public double ViewportMinY { get; set; }