API reference / Common / Engine types / SlideSectionCommand
Type Alias: SlideSectionCommand
ts
type SlideSectionCommand =
| {
insertSlideSection: {
at: SlideId;
name: string;
};
}
| {
renameSlideSection: {
id: SlideSectionId;
name: string;
};
}
| {
deleteSlideSections: {
ids: SlideSectionId[];
withSlides: boolean;
};
}
| {
reorderSlideSections: {
ids: SlideSectionId[];
to: number;
};
};An edit intent on the deck's sections — the EditSlideSection wrapping it, the section twin of the slide family's SlideCommand. Sections and slides are addressed by id; ids not in the presentation are skipped. Where a section lands is an index into the section order. Each command commits once, so the whole command is one undo step.
What each does with the slides is what PowerPoint does: a section's slides are a run of the slide order, and a slide the slide edits insert or move joins the section of the slide it lands behind, unless the edit names the section.