This documentation is archived and is not being maintained.

IndexInStencil property

IndexInStencil property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         https://msdn.microsoft.com/en-us/library/aa190466(v=office.10).aspx Applies to

Contains the index of a master or master shortcut object within its stencil.

Version added

2000

Syntax

intRet = object.IndexInStencil
object.IndexInStencil = intExpression

intRet

Integer. The index of the object within its stencil.

object

Required. An expression that returns a Master or MasterShortcut object.

intExpression

Required Integer. The new index of the object within its stencil.

Remarks

Beginning with Visio 2000, the document stencil window shows all Master and MasterShortcut objects in a Visio document. The Visio object model exposes the Master and MasterShortcut objects in a Document object as two distinct collections. The index returned by a Master object is its index with respect to other Master objects in its Document object and is unrelated to the presence or absence of MasterShortcut objects in the document. The index returned by a MasterShortcut object is its index with respect to other MasterShortcut objects in its Document object and is unrelated to the presence or absence of Master objects in the document.

Use the IndexInStencil property to maintain the relative order of Master and MasterShortcut objects when considered as a single collection.

Show: