UniqueID property (Master object)

Microsoft Visio Developer Reference

UniqueID property (Master object)

   Example   

Returns the unique ID of a master.

Version added

4.0

Syntax

strRet = object.UniqueID

strRet

String. The unique ID of the Master object.

object

Required. An expression that returns a Master object.

Remarks

A Master object always has a unique ID. If you copy a master, the new master has the same unique ID as the original master (as well as the same base ID). However, if you change the new master, a new unique ID is assigned but the base ID remains the same.

For details about the base ID, see the BaseID property.

You can determine a Master object's unique ID using the following:

idStr = mastObj.UniqueID

The value it returns is a string in the following form:

{2287DC42-B167-11CE-88E9-0020AFDDD917}

You can access a master by its unique ID using Masters.Item(uniqueIDString).