Class
RotateCommandBase

Represents rotate command base.

Definition

Namespace:Telerik.Windows.Documents.Commands

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

cs-api-definition
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

RotateCommandBase(FixedDocumentViewerBase)

Initializes a new instance of the RotateCommandBase class.

Declaration

cs-api-definition
public RotateCommandBase(FixedDocumentViewerBase viewer)

Parameters

viewer

FixedDocumentViewerBase

The viewer.

Methods

CanExecuteOverride(object)

Determines whether the command can be executed.

Declaration

cs-api-definition
public override bool CanExecuteOverride(object parameter)

Parameters

parameter

object

The parameter.

Returns

bool

Returns if the command can be executed.

Overrides FixedDocumentViewerCommandBase.CanExecuteOverride(object)

GetRotatedAngle(RotationAngle)

Gets the rotated angle.

Declaration

cs-api-definition
protected RotationAngle GetRotatedAngle(RotationAngle angle)

Parameters

angle

RotationAngle

The angle.

Returns

RotationAngle

RegisterRotation(RotationAngle, RotationAngle)

Registers the rotation.

Declaration

cs-api-definition
protected void RegisterRotation(RotationAngle initialAngle, RotationAngle rotatedAngle)

Parameters

initialAngle

RotationAngle

The initial angle.

rotatedAngle

RotationAngle

The rotated angle.

SetRotationAngle(RotationAngle)

Sets the rotation angle.

Declaration

cs-api-definition
protected void SetRotationAngle(RotationAngle angle)

Parameters

angle

RotationAngle

The angle.