ShapeMouseLeaveEventArgs Object (JavaScript API for Visio)

Applies to: Visio Online

Provides information about the shape that raised the ShapeMouseLeave event.

Properties

Property Type Description
shapeName string Gets the name of the shape object that raised the ShapeMouseLeave event.
pageName string Gets the name of the page which has the shape object that raised the ShapeMouseLeave event.

See property access examples.

Relationships

None

Methods

None

Property access examples

Visio.run(function (ctx) { 
  var document1= ctx.document;
               var page = document1.getActivePage();
    eventResult2 = document1.onShapeMouseLeave.add(
                function (args){            
                         console.log(Date.now()+":OnShapeMouseLeave Event"+JSON.stringify(args));
            });
    return ctx.sync().then(function () {
           console.log("Success");
        });
}).catch(function(error) {
        console.log("Error: " + error);
        if (error instanceof OfficeExtension.Error) {
            console.log("Debug info: " + JSON.stringify(error.debugInfo));
        }
});