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 Slide

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


Enumerations

NameTypeAccessDescription
ShapeCollectionShapeCollectionReadGets the shape collection.
ILayoutSlideILayoutSlideReadGets the i layout slide.
INotesSlideManagerINotesSlideManagerReadGets the i notes slide manager.
SignatureDescription
ShapeCollection()ShapeCollectionProperty provides access to the slide’s ShapeCollection
ShapeCollection()ShapeCollection
ILayoutSlide()ILayoutSlideProperty provides access to the slide’s layout interface
INotesSlideManager()INotesSlideManagerProperty provides access to the slide’s notes manager
INotesSlideManager()INotesSlideManager
presentation()IPresentationReturns the parent presentation.
presentation()IPresentationReturns the parent presentation.
slide()IBaseSlideReturns this slide as the base slide.
slide()IBaseSlideReturns this slide as the base slide.
as_i_presentation_component()IPresentationComponentAllows to get base IPresentationComponent interface.
as_i_presentation_component()IPresentationComponentAllows to get base IPresentationComponent interface.
shapes()ShapeCollectionReturns the collection of shapes on this slide.
shapes()ShapeCollectionReturns the collection of shapes on this slide.
slide_number()intReturns the number of the slide. Read/write.
set_slide_number(value: int)Sets the number of the slide.
hidden()boolDetermines whether the specified slide is hidden during a slide show. Read/write.
set_hidden(value: bool)Sets whether the slide is hidden.
layout_slide()ILayoutSlideReturns 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()INotesSlideManagerReturns the notes slide manager. Read-only.
notes_slide_manager()INotesSlideManagerReturns 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()ISlideComponentReturns a reference to this as ISlideComponent.
as_i_slide_component()ISlideComponentReturns 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::stringReturns the OPC part name for this slide, or empty if not OPC-loaded.
opc_package()Internal::opc::OpcPackageReturns the OPC package, or nullptr if not OPC-loaded.
slide_part()Internal::pptx::SlidePartReturns 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);

Xem Thêm

 Tiếng Việt