menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ClickEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ClickEventArgs

    Notifies when clicking on an object or diagram.

    Inheritance
    System.Object
    ClickEventArgs
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ClickEventArgs : Object
    Examples
    <SfDiagramComponent Width = "1000px" Height="1000px" Click="click">
    </SfDiagramComponent>
    @code
    {
        private void click(ClickEventArgs args)
        {
            if (args.ActualObject != null)
            {
                Console.WriteLine("Clicked");
            }
        }
    }

    Constructors

    ClickEventArgs()

    Declaration
    public ClickEventArgs()

    Properties

    ActualObject

    Gets the object to be clicked on. It returns null when there is no object present in the clicked position.

    Declaration
    public IDiagramObject ActualObject { get; }
    Property Value
    Type
    IDiagramObject

    Button

    Gets the mouse button that has to be clicked.

    Declaration
    public MouseButtons Button { get; }
    Property Value
    Type
    MouseButtons

    Count

    Gets the number of times the object or diagram has to be clicked.

    Declaration
    public int Count { get; }
    Property Value
    Type
    System.Int32

    Element

    Gets the object if the clicked position has an object or returns the diagram.

    Declaration
    public IDiagramObject Element { get; }
    Property Value
    Type
    IDiagramObject

    Position

    Gets the clicked position in the diagram.

    Declaration
    public DiagramPoint Position { get; }
    Property Value
    Type
    DiagramPoint
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved