SnapEnabled property

Microsoft Visio Developer Reference

SnapEnabled property

See also   Example   

Determines whether snap is active in the document.

Version added

2002

Syntax

retVal = object.SnapEnabled
object.SnapEnabled = newVal

retVal

Boolean. True if snap is active; otherwise, False.

object

Required. An expression that returns a Document object.

newVal

Required Boolean. True to enable snap behavior; False to disable snap behavior.

Remarks

The value of the SnapEnabled property is equivalent to selecting the Snap check box on the General tab in the Snap & Glue dialog box (on the Tools menu, click Snap & Glue).