insertComment

insertComment(int index, String text, Slide slide, Point2D.Float position, Date creationTime) function

Insert new comment to a collection at the specified index.

Parameters

NameTypeDescription
indexintIndex of the element in a collection at which comment should be inserted.
textStringPlain text of a new comment.
slideSlideSlide in a presentation where to add a new comment.
positionPoint2D.FloatPosition on a slide where to add a new comment.
creationTimeDateTime of a comment creation.

Result

Comment, ModernComment