Share via


TargetMasterName Property [Visio 2003 SDK Documentation]

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

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.

Version added

2000

Remarks

The name specified by this property must be the target master's universal name, not its localized name. For a given master, the universal name is specified by the master's NameU property, and the local name by its Name property.

When the user drops a master shortcut onto a drawing page, the application first locates the document identified by the shortcut's TargetDocumentName property, and 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.

Applies to | MasterShortcut object

See Also | CreateShortcut method | TargetDocumentName property