alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class AxisLabelTappedEventArgs

    Provides data for the AxisLabelTapped event.

    Inheritance
    System.Object
    AxisLabelTappedEventArgs
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class AxisLabelTappedEventArgs : EventArgs
    Remarks

    This class contains information about the axis label that was tapped/clicked by the user. It includes the axis reference, label details, and the screen position of the tap.

    Usage Example:

    var chart = new SfCartesianChart();
    chart.AxisLabelTapped += (sender, args) =>
    {
        var axis = args.Axis;
        var label = args.AxisLabel;
        var position = args.Position;
        Debug.WriteLine($"Tapped label at position {position}");
    };

    Constructors

    AxisLabelTappedEventArgs(ChartAxis, ChartAxisLabel, PointF)

    Initializes a new instance of the AxisLabelTappedEventArgs class.

    Declaration
    public AxisLabelTappedEventArgs(ChartAxis axis, ChartAxisLabel axisLabel, PointF position)
    Parameters
    Type Name Description
    ChartAxis axis

    The axis instance containing the tapped label.

    ChartAxisLabel axisLabel

    The tapped axis label object.

    Microsoft.Maui.Graphics.PointF position

    The screen coordinates (X, Y) of the tap.

    Properties

    Axis

    Gets the axis instance containing the tapped label.

    Declaration
    public ChartAxis Axis { get; }
    Property Value
    Type
    ChartAxis

    AxisLabel

    Gets the tapped axis label object.

    Declaration
    public ChartAxisLabel AxisLabel { get; }
    Property Value
    Type
    ChartAxisLabel

    Position

    Gets the screen coordinates (X, Y) of the tap.

    Declaration
    public PointF Position { get; }
    Property Value
    Type
    Microsoft.Maui.Graphics.PointF

    See Also

    AxisLabelTapped
    ChartAxis
    ChartAxisLabel
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved