asposediagram.api

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
methodgetDel()
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.
methodgetEventDblClick()
method
           An event element that is evaluated when a shape is double-clicked.
methodgetEventDrop()
method
           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.
methodgetEventMultiDrop()
method
           EventMultiDrop.
methodgetEventXFMod()
method
           An event element that is evaluated when a shape's position or orientation on the page is transformed.
methodgetTheData()
method
setTheData(value)
           Reserved for future use.
methodgetTheText()
method
setTheText(value)
           An event element that is evaluated when a shape's text or text composition changes.
 
Method Summary
methoddeepClone()
Creates deep copy of this instance.
 

    • Property Getters/Setters Detail

      • getDel/setDel : int 

        int getDel() / 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 

        DoubleValue getTheData() / setTheData(value)
        
        Reserved for future use.
      • getTheText/setTheText : DoubleValue 

        DoubleValue getTheText() / setTheText(value)
        
        An event element that is evaluated when a shape's text or text composition changes.
      • getEventDblClick/setEventDblClick : DoubleValue 

        DoubleValue getEventDblClick() / setEventDblClick(value)
        
        An event element that is evaluated when a shape is double-clicked.
      • getEventXFMod/setEventXFMod : DoubleValue 

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

        DoubleValue getEventDrop() / 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 

        DoubleValue getEventMultiDrop() / setEventMultiDrop(value)
        
        EventMultiDrop.
    • Method Detail

      • deepClone

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