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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public double GetConfinedRotation(
WpfAnnotationUI annotation,
double requestedRotation
)
Public Function GetConfinedRotation (
annotation As WpfAnnotationUI,
requestedRotation As Double
) As Double
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:
DoubleA valid rotation for this annotation, keeping it within the confined bounds.
Exceptions See Also