NotesSlidePart
Overview
NotesSlidePart is a class in Aspose.Slides FOSS for C++.
Manages a notes slide XML part (ppt/notesSlides/notesSlideN.xml). Provides access to notes text and placeholder management.
Methods
| Signature | Description |
|---|---|
name() → std::string | Get the slide name from . |
set_name(value: std::string_view) | Set the slide name on . |
get_notes_txbody() → pugi::xml_node | Get the txBody element of the notes body placeholder. |
has_placeholder(type: std::string_view) → bool | Check if a placeholder of the given type exists. |
remove_placeholder(type: std::string_view) | Remove the placeholder shape of the given type. |
add_placeholder(type: std::string_view) | Add a minimal placeholder shape of the given type (if not already present). |
set_placeholder_text(type: std::string_view, text: std::string_view) | Set text content for a placeholder shape. Adds the placeholder if absent. |
save() | Save the notes slide XML back to the package. |
create_empty(package: opc::OpcPackage, slide_part_name: std::string_view) → NotesSlidePart | Create a new empty notes slide in the package for a given slide. |
remove(package: opc::OpcPackage, part_name: std::string_view) | Delete a notes slide and its associated files from the package. |
compute_relative_target(from_part: std::string_view, to_part: std::string_view) → std::string | Compute a relative path from one part to another. |
find_notes_master(package: opc::OpcPackage) → std::optional<std::string> | Find the notes master part name in the package. |
build_notes_xml() → std::vector<uint8_t> | Build a minimal notes slide XML document. |