Click or drag to resize

AnnotationControllerRotationSnapInterval Property

Gets or sets the interval used for snapping interactive rotation to degrees.

This is used to help users when rotating an annotation, making it easier to stop at whole degrees. The snap area is determined by the RotationSnapThreshold property.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public float RotationSnapInterval { get; set; }

Property Value

Type: Single
The degree interval used for interactive rotation snapping.
This value must be from 0 to 180 and evenly divisible into 360. When setting this property the value will automatically be converted into a valid value.
The following settings will cause the rotation to snap at 10 degree intervals when the rotation gets within 2 degrees of the interval.
this.annotateViewer1.RotationSnapInterval = 10;
this.annotateViewer1.RotationSnapThreshold = 2;
Me.annotateViewer1.RotationSnapInterval = 10
Me.annotateViewer1.RotationSnapThreshold = 2
See Also