RotationService
Represents a rotation service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class RotationService : GraphServiceBase, IRotationService
Inheritance: objectGraphServiceBaseRotationService
Implements:
Inherited Members
Constructors
Initializes a new instance of the RotationService class.
Properties
Gets a value indicating whether this instance is rotating.
public bool IsRotating { get; }
True if this instance is rotating; otherwise, false.
Implements:
Gets or sets the rotation origin for the rotation operation.
public Point RotationOrigin { get; set; }
The rotation origin.
Methods
Completes the rotation.
public virtual void CompleteRotate(Point mousePoint)
The mouse point.
Implements:
Initializes the rotate action.
public virtual void InitializeRotate(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect bounds)
The selected items.
adornerAngledoubleThe adorner angle.
boundsRectThe adorner bounds.
Implements:
Rotates the items to the specified mouse position.
public virtual void Rotate(Point mousePosition)
The mouse position.
Implements:
Updates the parent containers of the selected items containers.
protected virtual void UpdateContainers()
Events
Occurs on complete rotating.
public event EventHandler<RotatingEventArgs> CompleteRotating
Implements:
Occurs when rotating.
public event EventHandler<RotatingEventArgs> Rotating
Implements:
Occurs on start rotating.
public event EventHandler<CancelingManipulationEventArgs> StartRotating
Implements: