WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RotateTool - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RotateTool

    Interactive tool for rotating nodes.

    Inheritance
    System.Object
    Tool
    RotateTool
    Implements
    System.IDisposable
    Inherited Members
    Tool.m_ConnectorSourceEventArgs
    Tool.m_ConnectorTargetEventArgs
    Tool.m_rulerDisplayRect
    Tool.m_toolPreceding
    Tool.m_ptStartOrigin
    Tool.ActivateTool()
    Tool.ProcessKeyUp(KeyEventArgs)
    Tool.ProcessKeyPress(KeyPressEventArgs)
    Tool.ProcessKeyDown(KeyEventArgs)
    Tool.ProcessClick()
    Tool.ProcessDoubleClick(MouseEventArgs)
    Tool.GetSelectionList()
    Tool.OnConnectorChanging(EndPointChangingEventArgs)
    Tool.UpdateConnnectorChangeEvent(IEndPointContainer, ConnectionPoint, ConnectionPoint)
    Tool.GetLocalPoint(Node, PointF)
    Tool.GetPortBounds(ConnectionPoint, Single)
    Tool.CanInsert(Node)
    Tool.UpdateCursor(Boolean)
    Tool.AppendParentTransformations(PointF, Node)
    Tool.GetFullRotationAngle(Node)
    Tool.QuiteBoundarySet(Boolean)
    Tool.QuiteBridgingSet(Boolean)
    Tool.GetPointOffset(PointF, Node)
    Tool.SmartSnap(PointF, SizeF)
    Tool.CheckBoundaryConstraints(Node, Matrix)
    Tool.CanAddNode(Rectangle)
    Tool.MakeControlNodeSnapshot(ControlNode)
    Tool.GetInsideNodeAt(PointF)
    Tool.GetOriginOffset()
    Tool.GetStartPoint(Boolean)
    Tool.GetCurrentPoint(Boolean)
    Tool.GetFrameRectangle(Boolean)
    Tool.GetSnapStartPoint()
    Tool.GetSnapCurrentPoint()
    Tool.DrawRenderHelper(Node, Graphics)
    Tool.DrawRenderHelper(Node, Graphics, Rectangle)
    Tool.UpdatePortRefreshRect(ConnectionPoint, Rectangle)
    Tool.GetEndPointLocation(ConnectionPoint, PointF)
    Tool.CheckConnectionPossibility(PointF)
    Tool.CheckConnectionCenterPort(PointF)
    Tool.ApplyDecorator(Decorator, Decorator)
    Tool.OutlineConnectionPoint(Graphics, ConnectionPoint)
    Tool.SnapToPort(PointF, SizeF)
    Tool.SnapToPort(PointF, SizeF, Node)
    Tool.DrawFrameAroundPort(Graphics, ConnectionPoint)
    Tool.HighlightCenterPortContainer(Graphics, ConnectionPoint)
    Tool.GetNodeUnderEndPoint(PointF)
    Tool.CanRender
    Tool.ToolWorkRect
    Tool.WorkRectPrev
    Tool.WorkRect
    Tool.RulerHeight
    Tool.Name
    Tool.PrecedingTool
    Tool.InAction
    Tool.StartPoint
    Tool.CurrentPoint
    Tool.Controller
    Tool.SingleActionTool
    Tool.ToolCursor
    Tool.ActionCursor
    Tool.CurrentToolCursor
    Tool.CurrentCursor
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Windows.dll
    Syntax
    public class RotateTool : Tool, IDisposable
    Remarks

    Tool

    Constructors

    RotateTool(DiagramController)

    Initializes a new instance of the RotateTool class.

    Declaration
    public RotateTool(DiagramController controller)
    Parameters
    Type Name Description
    DiagramController controller

    The controller.

    RotateTool(DiagramController, Node, Tool)

    Initializes a new instance of the RotateTool class.

    Declaration
    public RotateTool(DiagramController controller, Node nodeRotating, Tool toolPreceding)
    Parameters
    Type Name Description
    DiagramController controller

    The controller.

    Node nodeRotating

    The rotating node.

    Tool toolPreceding

    The preceding tool.

    Properties

    CurrentAngle

    Gets the rotated current angle.

    Declaration
    public float CurrentAngle { get; }
    Property Value
    Type Description
    System.Single

    The current angle.

    RenderHelper

    Gets the render helper created from original node.

    Declaration
    protected Node RenderHelper { get; }
    Property Value
    Type Description
    Node

    The render helper.

    Snapshots

    Gets the snapshots hash where key is node and value - caches image.

    Declaration
    protected Hashtable Snapshots { get; }
    Property Value
    Type Description
    System.Collections.Hashtable

    The snapshots.

    Methods

    Abort()

    Aborts tool actions.

    Declaration
    public override Tool Abort()
    Returns
    Type Description
    Tool

    The tool to abort.

    Overrides
    Tool.Abort()

    CanRotate()

    Determines whether this active can rotate.

    Declaration
    public bool CanRotate()
    Returns
    Type Description
    System.Boolean

    true if this active node can rotate; otherwise, false.

    DeactivateTool()

    Deactivates the tool.

    Declaration
    public override void DeactivateTool()
    Overrides
    Tool.DeactivateTool()

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    Tool.Dispose()

    Draw(Graphics)

    Draws the specified graphics.

    Declaration
    public override void Draw(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on.

    Overrides
    Tool.Draw(Graphics)

    OnOriginChanged(ViewOriginEventArgs)

    Raise the origin changed event.

    Declaration
    protected override void OnOriginChanged(ViewOriginEventArgs evtArgs)
    Parameters
    Type Name Description
    ViewOriginEventArgs evtArgs

    The ViewOriginEventArgs instance containing the event data.

    Overrides
    Tool.OnOriginChanged(ViewOriginEventArgs)

    ProcessMouseDown(MouseEventArgs)

    Processes the mouse down.

    Declaration
    public override Tool ProcessMouseDown(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    The System.Windows.Forms.MouseEventArgs instance containing the event data.

    Returns
    Type Description
    Tool

    The tool.

    Overrides
    Tool.ProcessMouseDown(MouseEventArgs)

    ProcessMouseMove(MouseEventArgs)

    Processes the mouse move.

    Declaration
    public override Tool ProcessMouseMove(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    The System.Windows.Forms.MouseEventArgs instance containing the event data.

    Returns
    Type Description
    Tool

    The tool.

    Overrides
    Tool.ProcessMouseMove(MouseEventArgs)

    ProcessMouseUp(MouseEventArgs)

    Processes the mouse up.

    Declaration
    public override Tool ProcessMouseUp(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    The System.Windows.Forms.MouseEventArgs instance containing the event data.

    Returns
    Type Description
    Tool

    The tool.

    Overrides
    Tool.ProcessMouseUp(MouseEventArgs)

    Implements

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