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 | ||
---|---|---|
method | getDel() | |
method | 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. | ||
method | getEventDblClick() | |
method | setEventDblClick(value) | |
An event element that is evaluated when a shape is double-clicked. | ||
method | getEventDrop() | |
method | 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. | ||
method | getEventMultiDrop() | |
method | setEventMultiDrop(value) | |
EventMultiDrop. | ||
method | getEventXFMod() | |
method | setEventXFMod(value) | |
An event element that is evaluated when a shape's position or orientation on the page is transformed. | ||
method | getTheData() | |
method | setTheData(value) | |
Reserved for future use. | ||
method | getTheText() | |
method | setTheText(value) | |
An event element that is evaluated when a shape's text or text composition changes. |
Method Summary | ||
---|---|---|
method | deepClone() | |
Creates deep copy of this instance.
|
int getDel() / setDel(value)
DoubleValue getTheData() / setTheData(value)
DoubleValue getTheText() / setTheText(value)
DoubleValue getEventDblClick() / setEventDblClick(value)
DoubleValue getEventXFMod() / setEventXFMod(value)
DoubleValue getEventDrop() / setEventDrop(value)
DoubleValue getEventMultiDrop() / setEventMultiDrop(value)