CommentData

Overview

CommentData is a class in Aspose.Slides FOSS for C++.

Raw data for a single comment parsed from XML. Wraps a pugixml node and provides typed accessors for the comment attributes and child elements. Changes made through the setters are reflected directly in the underlying XML node.

This class provides 14 methods for working with CommentData objects in C++ programs. Available methods include: CommentData, author_id, dt_str, idx, node, parent_cm_id, pos_x, pos_y, set_dt_str, set_parent_cm_id, set_pos_x, set_pos_y, and 2 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.

Methods

SignatureDescription
CommentData(node: pugi::xml_node)Construct from a XML node.
author_id()int32_tAuthor ID attribute.
idx()int32_tComment index attribute.
dt_str()std::stringDatetime string (OOXML format) from the dt attribute.
set_dt_str(value: std::string_view)Sets the comment timestamp using an OOXML‑formatted datetime 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>)Sets the optional parent comment ID, allowing nullopt for top‑level
text()std::stringComment text content (from the child element).
set_text(value: std::string_view)Sets the textual content of the comment
pos_x()doublePosition X in centimeters (converted from EMU).
set_pos_x(value: double)Sets the X coordinate of the comment in centimeters (converted to EMU)
pos_y()doublePosition Y in centimeters (converted from EMU).
set_pos_y(value: double)
node()pugi::xml_nodeAccess the underlying XML node (for remove operations).

See Also

 English