Office.SlideRange interface
Represents the selected slides in a PowerPoint presentation. This object is returned when calling with Office.CoercionType.SlideRange in PowerPoint.
Remarks
Examples
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, (asyncResult) => {
if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
const slideRange: Office.SlideRange = asyncResult.value;
console.log(`Selected ${slideRange.slides.length} slide(s)`);
slideRange.slides.forEach(slide => {
console.log(`Slide ${slide.index}: ${slide.title} (ID: ${slide.id})`);
});
}
else {
console.error(asyncResult.error.message);
}
});
Properties
| slides | Gets an array of the selected slides. |