MergePosition property

Microsoft Visio Developer Reference

MergePosition property

   Example   

Specifies the left-to-right tab position of a merged anchored window.

Version Added

2002

Syntax

intRet = object.MergePosition
object.MergePosition = intVal

intRet

Long. The tab position of the merged window.

object

Required. An expression that returns a Window object.

intVal

Required Long. The new tab position of the merged window.

Remarks

If there are n tabs, the leftmost position is 1 and the rightmost position is n. If the windows are merged in a docked stencil fashion, 1 is the topmost and n is the bottommost. A value of –1 means that the window is not merged.

The MergePosition property applies only to anchored windows. If the Window object is an MDI frame window, Visio raises an exception.

Use the Type property to determine window type.