Master class

Master class

Contains elements that define a master for the document. A master is a shape on a stencil that you use repeatedly to create drawings. When you drag a shape from a stencil onto the drawing page, the shape becomes an instance of that master, and a local copy of the master is included in the document.

The Master type exposes the following members:

Constructors

ConstructorDescription
Master()Constructor.

Properties

PropertyDescription
idThe unique ID of the element within its parent element.
base_idA GUID (globally unique identifier) that identifies the master across documents.
unique_idA GUID that identifies the master within the document.
match_by_nameThe MatchByName attribute determines how Microsoft Visio decides if a document master is already present when an instance of a master is dropped on the drawing page. It allows changes made to a document master to apply to new instances of the master, even if the instances are dragged from a stand-alone stencil file.
nameThe name of the element.
name_uThe universal name of the element.
icon_sizeThe size of the element’s icon.
pattern_flagsThe PatternFlags attribute determines whether a master behaves as a custom pattern.
promptThe status bar and tool tip prompt for the element.
hiddenSpecifies whether the master is hidden in the user interface.
icon_updateSpecifies whether the icon is automatically generated from the master itself.
align_nameSpecifies whether the master’s text in the stencil window is aligned left, right, or center.
shapesCollection of Shape objects.
connectsContains a Connect element for each connection between two shapes in a drawing.
iconSpecifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.
page_sheetContains elements that define the page sheet for a Page or Master element.

Methods

MethodDescription
clone()Creates deep copy of this instance.

See Also