Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IBlazorDragEnterEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IBlazorDragEnterEventArgs

    Triggers when the element entered in the diagram from the symbol palette.

    Inheritance
    System.Object
    IBlazorDragEnterEventArgs
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IBlazorDragEnterEventArgs : Object
    Examples
    <SfSymbolPalette id = "palettes" Height="600px"  SymbolWidth="100" SymbolHeight="100">
       <SymbolPalettePalettes>
           <SymbolPalettePalette Id = "flow" Expanded="true" Symbols="@BasicShapes" IconCss="e-ddb-icons e-flow" Title="Flow Shapes">
           </SymbolPalettePalette>
       </SymbolPalettePalettes>
    </SfSymbolPalette>
    <SfDiagram Height="600px"  >
       <DiagramEvents DragEnter = "DragEnter" ></ DiagramEvents >
    </ SfDiagram >
    @code
       {
       public void DragEnter(IBlazorDragEnterEventArgs args)
       {
           if ((args != null) && (args.Element != null))
           {
               Console.WriteLine("Dragged");
           }
       }
       public ObservableCollection<DiagramNode> BasicShapes { get; set; } = new ObservableCollection<DiagramNode>();
       protected override void OnInitialized()
       {
           DiagramNode BasicShape1 = new DiagramNode()
           {
               Id = "child1",
               Shape = new DiagramShape() { Type = Syncfusion.Blazor.Diagrams.Shapes.Basic, BasicShape = BasicShapes.Rectangle }
           };
           BasicShapes.Add(BasicShape1);
       }
    }

    Constructors

    IBlazorDragEnterEventArgs()

    Declaration
    public IBlazorDragEnterEventArgs()

    Properties

    Cancel

    Defines whether the user can prevent drag event or not.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    DiagramId

    Returns the id of the diagram.

    Declaration
    public string DiagramId { get; set; }
    Property Value
    Type Description
    System.String

    Element

    Returns the element of the diagram, such as the node, the connector that is to be dragged into the diagram.

    Declaration
    public DiagramEventObject Element { get; set; }
    Property Value
    Type Description
    DiagramEventObject

    Source

    Returns the element of the diagram, such as the node, the connector that is to be dragged into the diagram.

    Declaration
    public object Source { get; set; }
    Property Value
    Type Description
    System.Object
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved