SnapToRuler Property
SnapToRuler returns or sets the snap to ruler state. This property causes the cursor to snap to the ruler divisions as objects are drawn or moved. It helps the objects to be easily aligned with the ruler division marks. It has a Boolean value. If this value is set to 'True', the cursor snaps to the ruler division. If this value is set to 'False', objects can be drawn or moved to any location on the screen, including between ruler markings.
Syntax
object.SnapToRuler
object. SnapToRuler = Snap
Parameter |
Type |
Description |
Snap |
Boolean |
required |
Example 1
This example demonstrates how to return whether or not objects are snapped to the closest ruler division.
Debug.Print Ruler.SnapToRuler
Example 2
This example demonstrates how to snap objects to the closest ruler division.
Ruler.SnapToRuler = True
Example 3
This script displays all the properties in the Ruler object.
Used by: Ruler object