alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class DropEventArgs

    Notifies when the element is dropped from the diagram.

    Inheritance
    object
    DropEventArgs
    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 DropEventArgs
    Examples
    <SfDiagramComponent  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
    bool

    true, if the drop event is canceled. Otherwise, false.

    Element

    Gets the node or connector that is being dropped.

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

    Position

    Gets the position of the object.

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

    The DiagramPoint representing the position of the object.

    Target

    Gets the object from which the object will be dropped.

    Declaration
    public IDiagramObject? Target { get; }
    Property Value
    Type
    IDiagramObject
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved