Blazor

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

    Show / Hide Table of Contents

    Class DropEventArgs

    Notifies when the element is dropped from the diagram.

    Inheritance
    System.Object
    DropEventArgs
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DropEventArgs : Object
    Examples
    <SfDiagramComponent Width="1000px" Height="1000px" DragDrop="DragDrop">
    </SfDiagramComponent>
    private void DragDrop(DropEventArgs args)
    {
        if (args.Element is Node)
        {
            string id = (args.Element as NodeBase).ID;
        }
    }

    Constructors

    DropEventArgs()

    Declaration
    public DropEventArgs()

    Properties

    Cancel

    Gets or sets the value that indicates whether to cancel the drop event or not.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    Element

    Gets the node or connector that is being dropped.

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

    Position

    Gets the position of the object.

    Declaration
    public DiagramPoint Position { get; }
    Property Value
    Type Description
    DiagramPoint

    Target

    Gets the object from which the object will be dropped.

    Declaration
    public IDiagramObject Target { get; }
    Property Value
    Type Description
    IDiagramObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved