I'm developing an Office Add-In for Power Point. An example from the documentation about how to change slide is:
function goToSlideByIndex() {
var goToNext = Office.Index.Next;
Office.context.document.goToByIdAsync(goToNext, Office.GoToType.Index, function (asyncResult) {
if (asyncResult.status == "failed") {
showMessage("Action failed with error: " + asyncResult.error.message);
}
else {
showMessage("Navigation successful");
}
});
}
However, with this API I want to get the current slide id. Seems like there is no such a function in the Office-JS API.
How do I get this information?