alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ClickEventArgs

    Notifies when clicking on an object or diagram.

    Inheritance
    object
    ClickEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ClickEventArgs
    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
    int

    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
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved