Blazor

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class InteractionControllerBase

    Show / Hide Table of Contents

    Class InteractionControllerBase

    Represents the interactive tools.

    Inheritance
    System.Object
    CommonController
    InteractionControllerBase
    ConnectionController
    DragController
    FixedUserHandleController
    NodeDrawingController
    PolygonDrawingController
    PolylineDrawingController
    ResizeController
    RotationController
    SelectionController
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class InteractionControllerBase : CommonController

    Constructors

    InteractionControllerBase(SfDiagramComponent)

    Initializes a new instance of the InteractionControllerBase class.

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

    It provides sfdiagramcomponent

    Properties

    CurrentPosition

    Gets or sets the current position of the element.

    Declaration
    protected DiagramPoint CurrentPosition { get; set; }
    Property Value
    Type Description
    DiagramPoint

    InAction

    Allows to decide whether an element in action or not.

    Declaration
    protected bool InAction { get; set; }
    Property Value
    Type Description
    System.Boolean

    PreviousPosition

    Gets or sets the previous position of the element.

    Declaration
    protected DiagramPoint PreviousPosition { get; set; }
    Property Value
    Type Description
    DiagramPoint

    StartPosition

    Gets or sets the starting point of the element.

    Declaration
    protected DiagramPoint StartPosition { get; set; }
    Property Value
    Type Description
    DiagramPoint

    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
    Overrides
    CommonController.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
    CommonController.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
    CommonController.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
    CommonController.OnMouseUp(DiagramMouseEventArgs)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved