Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IBlazorDoubleClickEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IBlazorDoubleClickEventArgs

    Triggers while double click on the diagram or its objects.

    Inheritance
    System.Object
    IBlazorDoubleClickEventArgs
    Implements
    System.IEquatable<IBlazorDoubleClickEventArgs>
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IBlazorDoubleClickEventArgs : Object, IEquatable<IBlazorDoubleClickEventArgs>
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
       <DiagramEvents OnDoubleClick = "DoubleClick" ></ DiagramEvents >
    </ SfDiagram >
    @code
       {
       public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>();
       public void DoubleClick(IBlazorDoubleClickEventArgs args)
       {
           if ((args != null) && (args.Count == 2) && (args.Position != null) && (args.Source != null))
           {
               Console.WriteLine("doubleClick");
           }
       }
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>()
           {
               new DiagramNode(){
                   Id="node1",
                   Height = 100,
                   Width = 100,
                   OffsetX = 300,
                   OffsetY = 100
               },
           };
       }
    }

    Constructors

    IBlazorDoubleClickEventArgs()

    Declaration
    public IBlazorDoubleClickEventArgs()

    Properties

    Count

    Returns the number of times clicked.

    Declaration
    public double Count { get; set; }
    Property Value
    Type Description
    System.Double

    Position

    Returns the object position that is clicked.

    Declaration
    public PointModel Position { get; set; }
    Property Value
    Type Description
    PointModel

    Source

    Returns the object that is clicked or id of the diagram.

    Declaration
    public DiagramClickEventObject Source { get; set; }
    Property Value
    Type Description
    DiagramClickEventObject

    Methods

    Equals(IBlazorDoubleClickEventArgs)

    Indicates whether the IBlazorDoubleClickEventArgs object is equal to another object of the same type.

    Declaration
    public bool Equals(IBlazorDoubleClickEventArgs iBlazorDoubleClickEventArgs)
    Parameters
    Type Name Description
    IBlazorDoubleClickEventArgs iBlazorDoubleClickEventArgs

    Diagram double click event arguments

    Returns
    Type Description
    System.Boolean

    Returns the diagram or its objects in double click

    Implements

    System.IEquatable<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved