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

SignatureDescription
text()std::stringReturns 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_pointReturns the time of comment creation.
set_created_time(value: std::chrono::system_clock::time_point)Sets the time of comment creation.
slide()SlideReturns the parent slide of this comment. Read-only.
author()CommentAuthorReturns the author of this comment. Read-only.
position()Drawing::PointFReturns the position of this comment on the slide.
set_position(value: Drawing::PointF)Sets the position of this comment on the slide.
parent_comment()ICommentReturns the parent comment, or nullptr if none.
set_parent_comment(value: IComment)Sets the parent comment. Pass nullptr to clear.
idx()std::uint32_tReturns the unique index of this comment within its author’s scope.
remove()Removes this comment and all its replies from the parent collection.

See Also