Document.GlueSettings Property (Visio)
Determines the objects that shapes glue to when glue is enabled in the document. Read/write.
Setting the value of the GlueSettings property is equivalent to selecting options under Glue to on the General tab in the Snap & Glue dialog box (on the View tab, click the Visual Aids arrow).
The GlueSettings property can be any combination of the following VisGlueSettings constants, which are declared in the Microsoft Visio type library.
Glue is enabled but no other glue settings are on.
Glue to guides.
Glue to shape handles.
Glue to shape vertices.
Glue to connection points.
Glue to shape geometry.