Master

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.

Master()

Constructor.

Properties

NameTypeDescription
IDintThe unique ID of the element within its parent element.
BaseIDUUIDA GUID (globally unique identifier) that identifies the master across documents.
UniqueIDUUIDA GUID that identifies the master within the document.
MatchByNameintThe MatchByName attribute determines how Microsoft Visio decides if a document master is already present when an instanc
NameStringThe name of the element.
NameUStringThe universal name of the element.
IconSizeintThe size of the element’s icon. The value of the property is IconSizeValue integer constant.
PatternFlagsintThe PatternFlags attribute determines whether a master behaves as a custom pattern.
PromptStringThe status bar and tool tip prompt for the element.
HiddenintSpecifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant.
IconUpdateintSpecifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer
AlignNameintSpecifies whether the master’s text in the stencil window is aligned left, right, or center. The value of the property i
ShapesShapeCollectionCollection of Shape objects.
ConnectsConnectCollectionContains a Connect element for each connection between two shapes in a drawing.
Iconbyte[]Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShor
PageSheetPageSheetContains elements that define the page sheet for a Page or Master element.

Methods

NameDescription
disposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
deepCloneCreates deep copy of this instance.