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

Represents rotate command base.

Definition

Namespace:Telerik.Windows.Documents.Commands

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public abstract class RotateCommandBase : FixedDocumentViewerCommandBase, ICommand

Inheritance: objectFixedDocumentViewerCommandBaseRotateCommandBase

Derived Classes: RotateClockwiseCommandRotateCounterClockwiseCommand

Implements: ICommand

Inherited Members FixedDocumentViewerCommandBase.CanExecute(object)FixedDocumentViewerCommandBase.Execute(object)FixedDocumentViewerCommandBase.OnCanExecuteChanged()FixedDocumentViewerCommandBase.ViewerFixedDocumentViewerCommandBase.CanExecuteChanged

Constructors

Initializes a new instance of the RotateCommandBase class.

C#
public RotateCommandBase(FixedDocumentViewerBase viewer)
Parameters:viewerFixedDocumentViewerBase

The viewer.

Methods

Determines whether the command can be executed.

C#
public override bool CanExecuteOverride(object parameter)
Parameters:parameterobject

The parameter.

Returns:

bool

Returns if the command can be executed.

Overrides: FixedDocumentViewerCommandBase.CanExecuteOverride(object)

Gets the rotated angle.

C#
protected RotationAngle GetRotatedAngle(RotationAngle angle)
Parameters:angleRotationAngle

The angle.

Returns:

RotationAngle

Registers the rotation.

C#
protected void RegisterRotation(RotationAngle initialAngle, RotationAngle rotatedAngle)
Parameters:initialAngleRotationAngle

The initial angle.

rotatedAngleRotationAngle

The rotated angle.

Sets the rotation angle.

C#
protected void SetRotationAngle(RotationAngle angle)
Parameters:angleRotationAngle

The angle.