Constructor Summary |
---|
Master()
Constructor. |
Property Getters/Setters Summary | ||
---|---|---|
method | getAlignName() | |
method | setAlignName(value) | |
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. | ||
method | getBaseID() | |
A GUID (globally unique identifier) that identifies the master across documents.
|
||
method | getConnects() | |
Contains a Connect element for each connection between two shapes in a drawing.
|
||
method | getHidden() | |
method | setHidden(value) | |
Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant. | ||
method | getIcon() | |
method | setIcon(value) | |
Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document. | ||
method | getIconSize() | |
method | setIconSize(value) | |
The size of the element's icon. The value of the property is IconSizeValue integer constant. | ||
method | getIconUpdate() | |
method | setIconUpdate(value) | |
Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer constant. | ||
method | getID() | |
method | setID(value) | |
The unique ID of the element within its parent element. | ||
method | getMatchByName() | |
method | setMatchByName(value) | |
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. | ||
method | getName() | |
method | setName(value) | |
The name of the element. | ||
method | getNameU() | |
method | setNameU(value) | |
The universal name of the element. | ||
method | getPageSheet() | |
Contains elements that define the page sheet for a Page or Master element.
|
||
method | getPatternFlags() | |
method | setPatternFlags(value) | |
The PatternFlags attribute determines whether a master behaves as a custom pattern. | ||
method | getPrompt() | |
method | setPrompt(value) | |
The status bar and tool tip prompt for the element. | ||
method | getShapes() | |
Collection of Shape objects.
|
||
method | getUniqueID() | |
A GUID that identifies the master within the document.
|
Method Summary | ||
---|---|---|
method | deepClone() | |
Creates deep copy of this instance.
|
||
method | dispose() | |
Performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
|
int getID() / setID(value)
UUID getBaseID()
UUID getUniqueID()
int getMatchByName() / setMatchByName(value)
String getName() / setName(value)
String getNameU() / setNameU(value)
int getIconSize() / setIconSize(value)
int getPatternFlags() / setPatternFlags(value)
String getPrompt() / setPrompt(value)
int getHidden() / setHidden(value)
int getIconUpdate() / setIconUpdate(value)
int getAlignName() / setAlignName(value)
ShapeCollection getShapes()
ConnectCollection getConnects()
byte[] getIcon() / setIcon(value)
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);
PageSheet getPageSheet()