Slide — Aspose.Slides FOSS for C++ API Reference
Properties Slide 类表示演示文稿中的单个幻灯片。它提供对形状、布局幻灯片、备注和评论的访问。.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/slide.h>class SlideProperties: include/Aspose/Slides/Foss/slide.h
Properties
| Properties | Properties | Properties |
|---|---|---|
shapes() | Properties | 返回一个 ShapeCollection& 此幻灯片上的形状。. |
shapes() const | Properties | 返回一个 const ShapeCollection& 此幻灯片上的形状。. |
layout_slide() | Properties | 返回该 ILayoutSlide 与此幻灯片关联的对象。. |
notes_slide_manager() | Properties | 返回该 INotesSlideManager 用于管理演讲者备注的对象。. |
Properties
get_slide_comments()
返回与此幻灯片关联的评论。.
remove()
从演示文稿中移除此幻灯片。.
使用示例
访问幻灯片形状
#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;
Presentation prs("deck.pptx");
auto& slide = prs.slides()[0];
std::cout << "Shape count: " << slide.shapes().size() << std::endl;移除幻灯片
Presentation prs("deck.pptx");
auto& slide = prs.slides()[1];
slide.remove();
prs.save("trimmed.pptx", SaveFormat::PPTX);