Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Office.SlideRange interface
- Package:
- office
Represents the selected slides in a PowerPoint presentation. This object is returned when calling Office.Document.getSelectedDataAsync with Office.CoercionType.SlideRange in PowerPoint.
Remarks
Used by
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. |
Property Details
slides
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
