menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragController - API Reference

    Show / Hide Table of Contents

    Class DragController

    Represents the class that helps to move (drag) the selected objects.

    Inheritance
    System.Object
    CommonController
    InteractionControllerBase
    DragController
    Inherited Members
    InteractionControllerBase.InAction
    InteractionControllerBase.CurrentPosition
    InteractionControllerBase.PreviousPosition
    InteractionControllerBase.StartPosition
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DragController : InteractionControllerBase

    Constructors

    DragController(SfDiagramComponent)

    Initializes a new instance of the DragController class.

    Declaration
    public DragController(SfDiagramComponent diagram)
    Parameters
    Type Name Description
    SfDiagramComponent diagram

    It provides sfdiagramcomponent

    Methods

    OnMouseDown(DiagramMouseEventArgs)

    This method triggers when the mouse pointer is moved over the element and a mouse button is clicked.

    Declaration
    public override void OnMouseDown(DiagramMouseEventArgs args)
    Parameters
    Type Name Description
    DiagramMouseEventArgs args

    DiagramMouseEventArgs

    Overrides
    InteractionControllerBase.OnMouseDown(DiagramMouseEventArgs)

    OnMouseLeave(DiagramMouseEventArgs)

    This method triggers when the mouse pointer leaves the element.

    Declaration
    public override void OnMouseLeave(DiagramMouseEventArgs args)
    Parameters
    Type Name Description
    DiagramMouseEventArgs args

    DiagramMouseEventArgs

    Overrides
    InteractionControllerBase.OnMouseLeave(DiagramMouseEventArgs)

    OnMouseMove(DiagramMouseEventArgs)

    This method triggers when the mouse pointer is moved over the element.

    Declaration
    public override bool OnMouseMove(DiagramMouseEventArgs args)
    Parameters
    Type Name Description
    DiagramMouseEventArgs args

    DiagramMouseEventArgs

    Returns
    Type Description
    System.Boolean

    Blocked

    Overrides
    InteractionControllerBase.OnMouseMove(DiagramMouseEventArgs)

    OnMouseUp(DiagramMouseEventArgs)

    This method triggers when the mouse pointer is moved over the element and a mouse button is released.

    Declaration
    public override void OnMouseUp(DiagramMouseEventArgs args)
    Parameters
    Type Name Description
    DiagramMouseEventArgs args

    DiagramMouseEventArgs

    Overrides
    InteractionControllerBase.OnMouseUp(DiagramMouseEventArgs)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved