Ewa.EwaControl Methods

Applies to: apps for SharePoint | SharePoint Server 2010

Table 1 lists the methods of the Ewa.EwaControl Object class.

Events are prefixed with add_ for adding events. Events are prefixed with remove_ for removing events.

Methods

Table 1. Methods of the Ewa.EwaControl class

Name

Description

Ewa.EwaControl.add_activeCellChanged(function)

Subscribes an event handler to the activeCellChanged event.

Ewa.EwaControl.remove_activeCellChanged(function)

Unsubscribes an event handler from the activeCellChanged event.

Ewa.EwaControl.add_activeSelectionChanged(function)

Subscribes an event handler to the activeSelectionChanged event.

Ewa.EwaControl.remove_activeSelectionChanged(function)

Unsubscribes an event handler from the activeSelectionChanged event.

Ewa.EwaControl.add_enteredCellEditing(function)

Subscribes an event handler to the enteredCellEditing event.

Ewa.EwaControl.remove_enteredCellEditing(function)

Unsubscribes an event handler from the enteredCellEditing event.

Ewa.EwaControl.add_workbookChanged(function)

Subscribes an event handler to the workbookChanged event.

Ewa.EwaControl.remove_workbookChanged(function)

Unsubscribes an event handler from the workbookChanged event.

Ewa.EwaControl.add_gridSynchronized(function)

Subscribes an event handler to the gridSynchronized event.

Ewa.EwaControl.remove_gridSynchronized(function)

Unsubscribes an event handler from the gridSynchronized event.

Ewa.EwaControl.getActiveWorkbook()

Gets the active workbook.

Ewa.EwaControl.getDomElement()

In Web Part mode, gets the root-level DOM element (HTTPDivElement) for the Excel Services Web Part.

Ewa.EwaControl.getInstances()

Gets the EwaControlCollection with EwaControl instances that can be used.

Ewa.EwaControl.add_applicationReady(function)

Subscribes an event handler to the applicationReady event.

Ewa.EwaControl.remove_applicationReady(function)

Unsubscribes an event handler from the applicationReady event.

Ewa.EwaControl.loadEwaAsync(fileID, divID, embedOptions, callback, userContext)

Embeds a Microsoft Excel workbook in a <div> element on a host web page.