Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("TestTemplate.vsdm"); // get page page = diagram.getPages().get(0); // get shape id shapeId = page.addShape(3.0, 3.0, 0.36, 0.36, "Square"); // get shape shape = page.getShapes().getShape(shapeId); // set event cells in the ShapeSheet shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); shape.getEvent().getEventXFMod().getUfe().setF("CALLTHIS(\"ThisDocument.ShowAlert\")"); diagram.save("out-SettingEventCells.vsdm", aspose.diagram.SaveFileFormat.VSDM);
Property Getters/Setters Summary | ||
---|---|---|
function | getDel() | |
function | setDel(value) | |
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant. | ||
function | getEventDblClick() | |
function | setEventDblClick(value) | |
An event element that is evaluated when a shape is double-clicked. | ||
function | getEventDrop() | |
function | setEventDrop(value) | |
An event element that is evaluated when a shape is dropped on the drawing page, either as an instance or when a shape is duplicated or pasted. | ||
function | getEventMultiDrop() | |
function | setEventMultiDrop(value) | |
EventMultiDrop. | ||
function | getEventXFMod() | |
function | setEventXFMod(value) | |
An event element that is evaluated when a shape's position or orientation on the page is transformed. | ||
function | getTheData() | |
function | setTheData(value) | |
Reserved for future use. | ||
function | getTheText() | |
function | setTheText(value) | |
An event element that is evaluated when a shape's text or text composition changes. |
Method Summary | ||
---|---|---|
function | deepClone() | |
Creates deep copy of this instance. |
Property Getters/Setters Detail |
---|
getDel/setDel : Number | |
function getDel() / function setDel(value) |
getTheData/setTheData : DoubleValue | |
function getTheData() / function setTheData(value) |
getTheText/setTheText : DoubleValue | |
function getTheText() / function setTheText(value) |
getEventDblClick/setEventDblClick : DoubleValue | |
function getEventDblClick() / function setEventDblClick(value) |
getEventXFMod/setEventXFMod : DoubleValue | |
function getEventXFMod() / function setEventXFMod(value) |
getEventDrop/setEventDrop : DoubleValue | |
function getEventDrop() / function setEventDrop(value) |
getEventMultiDrop/setEventMultiDrop : DoubleValue | |
function getEventMultiDrop() / function setEventMultiDrop(value) |
Method Detail |
---|
deepClone | |
function deepClone() |