Slide — Aspose.Slides FOSS for C++ API Reference

Properties Slide คลาสนี้เป็นตัวแทนของสไลด์เดียวในงานนำเสนอ มันให้การเข้าถึงรูปทรง, สไลด์เลย์เอาต์, โน้ต, และความคิดเห็น.

Properties: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/slide.h>
class Slide

Properties: include/Aspose/Slides/Foss/slide.h


Properties

PropertiesPropertiesProperties
shapes()Propertiesคืนค่า a ShapeCollection& ของรูปทรงบนสไลด์นี้.
shapes() constPropertiesคืนค่า a const ShapeCollection& ของรูปทรงบนสไลด์นี้.
layout_slide()Propertiesคืนค่า the ILayoutSlide ที่เกี่ยวข้องกับสไลด์นี้.
notes_slide_manager()Propertiesคืนค่า the INotesSlideManager สำหรับการจัดการโน้ตของผู้พูด.

Properties

get_slide_comments()

คืนค่า comments ที่เชื่อมโยงกับสไลด์นี้.

remove()

ลบสไลด์นี้ออกจากงานนำเสนอ.


ตัวอย่างการใช้งาน

เข้าถึง Slide Shapes

#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);

ดูเพิ่มเติม

 ภาษาไทย