New to Telerik UI for WinFormsStart a free 30-day trial

Represents a rotation service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class RotationService : GraphServiceBase, IRotationService

Inheritance: objectGraphServiceBaseRotationService

Implements: IRotationService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the RotationService class.

C#
public RotationService(IGraphInternal graph)
Parameters:graphIGraphInternal

Properties

Gets a value indicating whether this instance is rotating.

C#
public bool IsRotating { get; }
Property Value:

True if this instance is rotating; otherwise, false.

Implements: IRotationService.IsRotating

Gets or sets the rotation origin for the rotation operation.

C#
public Point RotationOrigin { get; set; }
Property Value:

The rotation origin.

Methods

Calculates the rotation angle from the new point.

C#
protected virtual double CalculateRotationAngle(Point newPoint)
Parameters:newPointPoint

The new point.

Returns:

double

Completes the rotation.

C#
public virtual void CompleteRotate(Point mousePoint)
Parameters:mousePointPoint

The mouse point.

Implements: IRotationService.CompleteRotate(Point)

Initializes the rotate action.

C#
public virtual void InitializeRotate(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect bounds)
Parameters:newSelectedItemsIEnumerable<IDiagramItem>

The selected items.

adornerAngledouble

The adorner angle.

boundsRect

The adorner bounds.

Implements: IRotationService.InitializeRotate(IEnumerable<IDiagramItem>, double, Rect)

Rotates the items to the specified mouse position.

C#
public virtual void Rotate(Point mousePosition)
Parameters:mousePositionPoint

The mouse position.

Implements: IRotationService.Rotate(Point)

Starts the rotation.

C#
public virtual bool StartRotate(Point currentPoint)
Parameters:currentPointPoint

The current point.

Returns:

bool

Implements: IRotationService.StartRotate(Point)

Updates the parent containers of the selected items containers.

C#
protected virtual void UpdateContainers()

Events

Occurs on complete rotating.

C#
public event EventHandler<RotatingEventArgs> CompleteRotating

Implements: IRotationService.CompleteRotating

Occurs when rotating.

C#
public event EventHandler<RotatingEventArgs> Rotating

Implements: IRotationService.Rotating

Occurs on start rotating.

C#
public event EventHandler<CancelingManipulationEventArgs> StartRotating

Implements: IRotationService.StartRotating