CommentData
General
CommentData és una classe en Aspose.Slides FOSS per a C++.
Dades brutes per a un sol comentari analitzat des de XML. Envolta un node pugixml i proporciona accesors tipats pels atributs del comentaris i els elements fills. Els canvis realitzats mitjançant els setters es reflecteixen directament en el nodo XML subjacent.
Mètodes
| Signature | Description |
|---|---|
author_id() → int32_t | Author ID attribute. |
idx() → int32_t | Comment index attribute. |
dt_str() → std::string | Datetime string (OOXML format) from the dt attribute. |
set_dt_str(value: std::string_view) | Sets the comment timestamp using an OOXML‑formatted string |
parent_cm_id() → std::optional<int32_t> | Parent comment ID, or std::nullopt if this is a top-level comment. |
set_parent_cm_id(value: std::optional<int32_t>) | Assigns the optional parent comment ID, or nullopt to make it top‑level |
text() → std::string | Comment text content (from the child element). |
set_text(value: std::string_view) | Replaces the comment’s text with the provided string |
pos_x() → double | Position X in centimeters (converted from EMU). |
set_pos_x(value: double) | Sets the X coordinate of the comment in centimeters |
pos_y() → double | Position Y in centimeters (converted from EMU). |
set_pos_y(value: double) | Sets the Y coordinate of the comment in centimeters |