Click or drag to resize

WpfAnnotationCanvasGetConfinedRotation Method

This method can be used to determine whether the provided rotation value is valid for the annotation with regard to the confinement area.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public double GetConfinedRotation(
	WpfAnnotationUI annotation,
	double requestedRotation
)

Parameters

annotation
Type: Atalasoft.Annotate.WpfWpfAnnotationUI
The annotation this rotation would be used with.
requestedRotation
Type: SystemDouble
The requested rotation for the annotation.

Return Value

Type: Double
A valid rotation for this annotation, keeping it within the confined bounds.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the annotation argument is null (Nothing in VB).
See Also