SnapToRuler Property

 

The SnapToRuler property returns or sets the snap to ruler state. Returns a Boolean.

 

Syntax

object.SnapToRuler

object.SnapToRuler = Snap

 

Parameter

Type

Description

Snap

Boolean

required; true to snap objects to the ruler

 

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

 

Used by: Ruler object