alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class DragStartEventArgs

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

    Inheritance
    object
    DragStartEventArgs
    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 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

    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.

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