menu

Blazor

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

    Show / Hide Table of Contents

    Class RotationController

    Represents a controller that manages rotation interactions for selected diagram objects.

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

    The RotationController handles mouse events to rotate selected objects by dragging rotation handles and automatically calculates rotation angles based on mouse movement.

    Supports both single and multiple object selection with visual feedback during rotation operations.

    Methods

    OnMouseDown(DiagramMouseEventArgs)

    Handles the mouse down event that occurs when the user presses the mouse button over a selector rotation handle.

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

    A DiagramMouseEventArgs containing mouse event information including cursor position and button state.

    Overrides
    InteractionControllerBase.OnMouseDown(DiagramMouseEventArgs)
    Remarks

    Initiates rotation operation by capturing initial mouse position and preparing rotation state for selected elements.

    OnMouseLeave(DiagramMouseEventArgs)

    Handles the mouse leave event that occurs when the user moves the cursor away from the selector's rotating handles during a rotation operation.

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

    A DiagramMouseEventArgs containing mouse event information. Can be null.

    Overrides
    InteractionControllerBase.OnMouseLeave(DiagramMouseEventArgs)
    Remarks

    Automatically invoked when the mouse leaves rotation handles during an active rotation. If InAction property is true, delegates to OnMouseUp(DiagramMouseEventArgs) to complete the operation.

    OnMouseMove(DiagramMouseEventArgs)

    Handles mouse move events that occur while the user drags rotation handles to rotate selected diagram elements.

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

    A DiagramMouseEventArgs containing mouse event information including cursor position and button state.

    Returns
    Type Description
    System.Boolean

    A System.Boolean indicating whether the event was handled. Returns true to block further processing.

    Overrides
    InteractionControllerBase.OnMouseMove(DiagramMouseEventArgs)
    Remarks

    Called continuously during rotation operations to calculate rotation angle based on mouse position.

    Automatically invoked by the SfDiagramComponent during rotation interactions.

    OnMouseUp(DiagramMouseEventArgs)

    Handles the mouse up event that occurs when the user releases the mouse button over a selector rotation handle, completing the rotation operation.

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

    A DiagramMouseEventArgs containing mouse event information. Can be null.

    Overrides
    InteractionControllerBase.OnMouseUp(DiagramMouseEventArgs)
    Remarks

    Called when the user completes a rotation operation by releasing the mouse button after dragging a rotation handle.

    Automatically invoked by the SfDiagramComponent to finalize rotation interactions and update diagram state.

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