menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragStartEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DragStartEventArgs

    Notifies when the element enters into the diagram from the symbol palette.

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

    true, if the adding or removing symbol is canceled. Otherwise, false.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved