CommentData

Overview

CommentData is a class in Aspose.Slides for CPP. Inherits from: CommentData.

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.

Methods

SignatureDescription
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 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::stringComment text content (from the child element).
set_text(value: std::string_view)Replaces the comment’s text with the provided string
pos_x()doublePosition X in centimeters (converted from EMU).
set_pos_x(value: double)Sets the X coordinate of the comment in centimeters
pos_y()doublePosition Y in centimeters (converted from EMU).
set_pos_y(value: double)Sets the Y coordinate of the comment in centimeters