Share via


AlignName Property [Visio 2003 SDK Documentation]

Gets or sets the position of a master name in a stencil window.

intRet = object**.AlignName**

object**.AlignName** = intNewAlignment

intRet     Integer. Returns the current alignment of the master's name.

object     Required. An expression that returns a Master object.

intNewAlignment     Required Integer. The new alignment for the master's name.

Version added

2.0

Remarks

Starting with Microsoft Office Visio 2003, only custom (user-created) stencils are editable. By default, Visio stencils (stencils that are shipped on the Microsoft Office Visio CD) are not editable. However, by setting the AllowEditing property to True, you can override this behavior to allow editing of built-in stencils.

The following constants declared by the Visio type library show the possible alignment values.

Constant Value

visLeft

1

visCenter

2

visRight

3

Applies to | Master object | MasterShortcut object