Slide
Enumerations Slide class đại diện cho một slide duy nhất trong một bài thuyết trình. Nó cung cấp quyền truy cập vào các hình dạng, slide bố cục, ghi chú và bình luận.
Enumerations: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/slide.h>class SlideEnumerations: include/Aspose/Slides/Foss/slide.h
Enumerations
| Name | Type | Access | Description |
|---|---|---|---|
ShapeCollection | ShapeCollection | Read | Gets the shape collection. |
ILayoutSlide | ILayoutSlide | Read | Gets the i layout slide. |
INotesSlideManager | INotesSlideManager | Read | Gets the i notes slide manager. |
| Signature | Description |
|---|---|
ShapeCollection() → ShapeCollection | Property provides access to the slide’s ShapeCollection |
ShapeCollection() → ShapeCollection | |
ILayoutSlide() → ILayoutSlide | Property provides access to the slide’s layout interface |
INotesSlideManager() → INotesSlideManager | Property provides access to the slide’s notes manager |
INotesSlideManager() → INotesSlideManager | |
presentation() → IPresentation | Returns the parent presentation. |
presentation() → IPresentation | Returns the parent presentation. |
slide() → IBaseSlide | Returns this slide as the base slide. |
slide() → IBaseSlide | Returns this slide as the base slide. |
as_i_presentation_component() → IPresentationComponent | Allows to get base IPresentationComponent interface. |
as_i_presentation_component() → IPresentationComponent | Allows to get base IPresentationComponent interface. |
shapes() → ShapeCollection | Returns the collection of shapes on this slide. |
shapes() → ShapeCollection | Returns the collection of shapes on this slide. |
slide_number() → int | Returns the number of the slide. Read/write. |
set_slide_number(value: int) | Sets the number of the slide. |
hidden() → bool | Determines whether the specified slide is hidden during a slide show. Read/write. |
set_hidden(value: bool) | Sets whether the slide is hidden. |
layout_slide() → ILayoutSlide | Returns the layout slide for the current slide. Read/write. |
set_layout_slide(value: ILayoutSlide) | Sets the layout slide for the current slide. |
notes_slide_manager() → INotesSlideManager | Returns the notes slide manager. Read-only. |
notes_slide_manager() → INotesSlideManager | Returns the notes slide manager. Read-only. |
get_slide_comments(author: CommentAuthor) → std::vector<Comment*> | Returns comments on this slide, optionally filtered by author. If author is nullptr, returns all comments on this slide. |
remove() | Removes this slide from the presentation. |
as_i_slide_component() → ISlideComponent | Returns a reference to this as ISlideComponent. |
as_i_slide_component() → ISlideComponent | Returns a reference to this as ISlideComponent. |
init_internal(presentation: Presentation, package: Internal::opc::OpcPackage, part_name: std::string_view, slide_ref: SlideReference, slide_part: Internal::pptx::SlidePart, layout_resolver: LayoutResolver) | Internal initialization from OPC package data. |
part_name() → std::string | Returns the OPC part name for this slide, or empty if not OPC-loaded. |
opc_package() → Internal::opc::OpcPackage | Returns the OPC package, or nullptr if not OPC-loaded. |
slide_part() → Internal::pptx::SlidePart | Returns the SlidePart, or nullptr if not OPC-loaded. |
Enumerations
get_slide_comments()
Trả về các bình luận liên quan đến slide này.
remove()
Xóa slide này khỏi bài thuyết trình.
Ví dụ sử dụng
Truy cập các hình dạng của Slide
#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;Xóa một Slide
Presentation prs("deck.pptx");
auto& slide = prs.slides()[1];
slide.remove();
prs.save("trimmed.pptx", SaveFormat::PPTX);