new Master()

Constructor.

Methods

deepClone() → Object

Creates deep copy of this instance.

Returns

Object 

dispose()

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

getAlignName()

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.

getBaseID()

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

getConnects()

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

getHidden()

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

getIcon()

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

Example

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");
fs = require("fs");
stencil = new aspose.diagram.Diagram("Timeline.vss");
// get master
master = stencil.getMasters().getMasterByName("Diamond milestone");
// get byte array
bytes = master.getIcon();
// create an image file and write byte array to the image
fs.writeFileSync("out-MasterIcon.png", bytes);

getIconSize()

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

getIconUpdate()

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

getID()

The unique ID of the element within its parent element.

getMatchByName()

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.

getName()

The name of the element.

getNameU()

The universal name of the element.

getPageSheet()

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

getPatternFlags()

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

getPrompt()

The status bar and tool tip prompt for the element.

getShapes()

Collection of Shape objects.

getUniqueID()

A GUID that identifies the master within the document.

setAlignName()

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.

setHidden()

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

setIcon()

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

Example

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");
fs = require("fs");
stencil = new aspose.diagram.Diagram("Timeline.vss");
// get master
master = stencil.getMasters().getMasterByName("Diamond milestone");
// get byte array
bytes = master.getIcon();
// create an image file and write byte array to the image
fs.writeFileSync("out-MasterIcon.png", bytes);

setIconSize()

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

setIconUpdate()

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

setID()

The unique ID of the element within its parent element.

setMatchByName()

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.

setName()

The name of the element.

setNameU()

The universal name of the element.

setPatternFlags()

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

setPrompt()

The status bar and tool tip prompt for the element.