Slide
ImageRenderOptions Slide class representa um único slide em uma apresentação. Ele fornece acesso a shapes, layout slide, notes e comments.
ImageRenderOptions: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/slide.h>class SlideImageRenderOptions: include/Aspose/Slides/Foss/slide.h
ImageRenderOptions
| 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. |
ImageRenderOptions
get_slide_comments()
Retorna os comentários associados a este slide.
remove()
Remove este slide da apresentação.
Exemplos de Uso
Acessar Formas do 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;Remover um Slide
Presentation prs("deck.pptx");
auto& slide = prs.slides()[1];
slide.remove();
prs.save("trimmed.pptx", SaveFormat::PPTX);