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.

Constructors

NameDescription
MasterConstructor.

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.

Master()

Constructor.

Master.ID property

The unique ID of the element within its parent element.

Type: int

Master.BaseID property

A GUID (globally unique identifier) that identifies the master across documents.

Type: UUID

Master.UniqueID property

A GUID that identifies the master within the document.

Type: UUID

Master.MatchByName property

The 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. The value of the property is BOOL integer constant.

Type: int

Master.Name property

The name of the element.

Type: String

Master.NameU property

The universal name of the element.

Type: String

Master.IconSize property

The size of the element’s icon. The value of the property is IconSizeValue integer constant.

Type: int

Master.PatternFlags property

The PatternFlags attribute determines whether a master behaves as a custom pattern.

Type: int

Master.Prompt property

The status bar and tool tip prompt for the element.

Type: String

Master.Hidden property

Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant.

Type: int

Master.IconUpdate property

Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer constant.

Type: int

Master.AlignName property

Specifies whether the master’s text in the stencil window is aligned left, right, or center. The value of the property is AlignNameValue integer constant.

Type: int

Master.Shapes property

Collection of Shape objects.

Type: ShapeCollection

Master.Connects property

Contains a Connect element for each connection between two shapes in a drawing.

Type: ConnectCollection

Master.Icon property

Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.

Type: byte[]

Master.PageSheet property

Contains elements that define the page sheet for a Page or Master element.

Type: PageSheet

dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

deepClone()

Creates deep copy of this instance.