menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IBlazorDoubleClickEventArgs - API Reference

    Show / Hide Table of Contents

    Class IBlazorDoubleClickEventArgs

    Triggers while double click on the diagram or its objects.

    Inheritance
    System.Object
    IBlazorDoubleClickEventArgs
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IBlazorDoubleClickEventArgs : Object
    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

    Accepts the double value.

    Position

    Returns the object position that is clicked.

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

    The PointModel representing the position of the clicked object.

    Source

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

    Declaration
    public DiagramClickEventObject Source { get; set; }
    Property Value
    Type Description
    DiagramClickEventObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved