GlueSettings property

Microsoft Visio Developer Reference

GlueSettings property

See also   Example   

Determines the objects that shapes glue to when glue is enabled in the document.

Version added

2002

Syntax

retVal = object.GlueSettings
object.GlueSettings = newVal

retVal

VisGlueSettings. The objects in a document that shapes glue to.

object

Required. An expression that returns a Document object.

newVal

Required VisGluesettings. The objects in a document that shapes glue to.

Remarks

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 Tools menu, click Snap & Glue).

The GlueSettings property can be any combination of the following VisGlueSettings constants, which are declared in the Visio type library.

Constant

Value

Description

visGlueToNone

&H0

Glue is enabled but no other glue settings are on.

visGlueToGuides

&H1

Glue to guides.

visGlueToHandles

&H2

Glue to shape handles.

visGlueToVertices

&H4

Glue to shape vertices.

visGlueToConnectionPoints

&H8

Glue to connection points.

visGlueToGeometry

&H20

Glue to shape geometry.

visGlueToDisabled

&H8000

Disable glue.