aspose.diagram
Class Event

Contains elements that specify formulas that control shape events.

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
functiongetDel()
functionsetDel(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.
functiongetEventDblClick()
functionsetEventDblClick(value)
           An event element that is evaluated when a shape is double-clicked.
functiongetEventDrop()
functionsetEventDrop(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.
functiongetEventMultiDrop()
functionsetEventMultiDrop(value)
           EventMultiDrop.
functiongetEventXFMod()
functionsetEventXFMod(value)
           An event element that is evaluated when a shape's position or orientation on the page is transformed.
functiongetTheData()
functionsetTheData(value)
           Reserved for future use.
functiongetTheText()
functionsetTheText(value)
           An event element that is evaluated when a shape's text or text composition changes.
 
Method Summary
functiondeepClone()
           Creates deep copy of this instance.
 

Property Getters/Setters Detail

getDel/setDel : Number 

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.

getTheData/setTheData : DoubleValue 

function getTheData() / function setTheData(value)
Reserved for future use.

getTheText/setTheText : DoubleValue 

function getTheText() / function setTheText(value)
An event element that is evaluated when a shape's text or text composition changes.

getEventDblClick/setEventDblClick : DoubleValue 

function getEventDblClick() / function setEventDblClick(value)
An event element that is evaluated when a shape is double-clicked.

getEventXFMod/setEventXFMod : DoubleValue 

function getEventXFMod() / function setEventXFMod(value)
An event element that is evaluated when a shape's position or orientation on the page is transformed.

getEventDrop/setEventDrop : DoubleValue 

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.

getEventMultiDrop/setEventMultiDrop : DoubleValue 

function getEventMultiDrop() / function setEventMultiDrop(value)
EventMultiDrop.

Method Detail

deepClone

function deepClone()
Creates deep copy of this instance.
Returns:

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.