Comment
Overview
Comment is a class in Aspose.Slides FOSS for C++.
Represents a comment on a slide.
This class provides 12 methods for working with Comment objects in C++ programs.
Available methods include: author, created_time, idx, parent_comment, position, remove, set_created_time, set_parent_comment, set_position, set_text, slide, text.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
text() → std::string | Returns the plain text of a slide comment. |
set_text(value: std::string) | Sets the plain text of a slide comment. |
created_time() → std::chrono::system_clock::time_point | Returns the time of comment creation. |
set_created_time(value: std::chrono::system_clock::time_point) | Sets the time of comment creation. |
slide() → Slide | Returns the parent slide of this comment. Read-only. |
author() → CommentAuthor | Returns the author of this comment. Read-only. |
position() → Drawing::PointF | Returns the position of this comment on the slide. |
set_position(value: Drawing::PointF) | Sets the position of this comment on the slide. |
parent_comment() → IComment | Returns the parent comment, or nullptr if none. |
set_parent_comment(value: IComment) | Sets the parent comment. Pass nullptr to clear. |
idx() → std::uint32_t | Returns the unique index of this comment within its author’s scope. |
remove() | Removes this comment and all its replies from the parent collection. |