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
| Name | Description |
|---|---|
| Master | Constructor. |
Properties
| Name | Type | Description |
|---|---|---|
| ID | int | The unique ID of the element within its parent element. |
| BaseID | UUID | A GUID (globally unique identifier) that identifies the master across documents. |
| UniqueID | UUID | A GUID that identifies the master within the document. |
| MatchByName | int | The MatchByName attribute determines how Microsoft Visio decides if a document master is already present when an instanc |
| Name | String | The name of the element. |
| NameU | String | The universal name of the element. |
| IconSize | int | The size of the element’s icon. The value of the property is IconSizeValue integer constant. |
| PatternFlags | int | The PatternFlags attribute determines whether a master behaves as a custom pattern. |
| Prompt | String | The status bar and tool tip prompt for the element. |
| Hidden | int | Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant. |
| IconUpdate | int | Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer |
| AlignName | int | Specifies whether the master’s text in the stencil window is aligned left, right, or center. The value of the property i |
| Shapes | ShapeCollection | Collection of Shape objects. |
| Connects | ConnectCollection | Contains a Connect element for each connection between two shapes in a drawing. |
| Icon | byte[] | Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShor |
| PageSheet | PageSheet | Contains elements that define the page sheet for a Page or Master element. |
Methods
| Name | Description |
|---|---|
| dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| deepClone | Creates 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.