Class DragStartEventArgs
Notifies when the element enters into the diagram from the symbol palette.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DragStartEventArgs
Examples
<SfDiagramComponent DragStart="DragStart">
</SfDiagramComponent>
private void DragStart(DragStartEventArgs args)
{
if (args.Element is Node)
{
(args.Element as Node).Width = 300;
(args.Element as Node).Height = 300;
}
}
Constructors
DragStartEventArgs()
Declaration
public DragStartEventArgs()
Properties
Cancel
Gets or sets the value that indicates whether to add or remove the symbol from the diagram.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Element
Gets the node/connector over which the symbol is dragged.
Declaration
public IDiagramObject? Element { get; }
Property Value
| Type | Description |
|---|---|
| IDiagramObject | The IDiagramObject representing the node or connector over which the symbol is dragged. |