TargetMasterName property

Microsoft Visio Developer Reference

TargetMasterName property

   Example   

Gets or sets the name of the master to which the master shortcut refers.

Version added

2000

Syntax

strRet = object.TargetMasterName
object.TargetMasterName = strExpression

strRet

String. The name of the master.

object

Required. An expression that returns a MasterShortcut object.

strExpression

Required String. The new name of the master.

Remarks

The name specified by this property must be the target master's universal name, not its localized name.

When the user drops a master shortcut onto a drawing page, the application first locates the document identified by the shortcut's TargetDocumentName property, then it searches that document for a master whose universal name matches the shortcut's TargetMasterName property. Once located, the target master (not the shortcut) is used to create the new shape instance on the drawing page.