(6 2015 , ):
, Excel Online, . , ( , , , , ). .
, .
(6 2015 , ):
, .
, . addHandlerAsync , , , , , . , , , - (?). asyncStatus.status, .
(function() {
'use strict';
Office.initialize = function(reason) {
$(document).ready(function() {
app.initialize();
addDocumentHandler();
});
};
function addDocumentHandler() {
Office.context.document.addHandlerAsync(
Office.EventType.DocumentSelectionChanged,
eventHandler,
function(asyncResult) {
if (asyncResult.status == "succeeded") {
app.showNotification("Success", "Error handler was added");
} else {
app.showNotification("Error setting event: ", JSON.stringify(asyncResult));
}
}
);
function eventHandler(eventArgs) {
Office.context.document.getSelectedDataAsync(Office.CoercionType.Text, function(asyncResult) {
if (asyncResult.status == "succeeded") {
app.showNotification("Value of selection: ", asyncResult.value);
} else {
app.showNotification("Error", "Cannot read selection value");
}
});
}
}
})();
Office API Tutorial App, "SelectionChanged". . ?

~ , Office Extensibility, MSFT