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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public float RotationSnapInterval { get; set; }
Public Property RotationSnapInterval As Single
Get
Set
Property Value
Type:
SingleThe degree interval used for interactive rotation snapping.
Remarks
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.
Examples
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