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