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 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 |
---|
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 |