Comment

Comment class

Represents a comment on a slide.

getAuthor

NameDescription
getAuthor ()Returns the author of a comment. Read-only ICommentAuthor.

Returns: CommentAuthor


getCreatedTime

NameDescription
getCreatedTime ()Returns or sets the time of a comment creation. Setting this property to java.util.Date(Long.MIN_VALUE) means no comment time is set. Read/write java.util.Date. Comment time is an optional parameter.

Returns: Date


getParentComment

NameDescription
getParentComment ()Gets or sets parent comment. Read/write IComment.

Returns: Comment, ModernComment

Exception

ErrorCondition
PptxEditExceptionThrown when setting the value leads to a circular reference

getPosition

NameDescription
getPosition ()Returns or sets the position of a comment on a slide. Read/write java.awt.geom.Point2D.Float.

Returns: Point2D.Float


getSlide

NameDescription
getSlide ()Returns or sets the parent slide of a comment. Read-only ISlide.

Returns: Slide


getText

NameDescription
getText ()Returns or sets the plain text of a slide comment. Read/write String.

Returns: String


remove

NameDescription
remove ()Removes comment and all its replies from the parent collection.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown if comment is already removed

setCreatedTime

NameDescription
setCreatedTime (Date)Returns or sets the time of a comment creation. Setting this property to java.util.Date(Long.MIN_VALUE) means no comment time is set. Read/write java.util.Date. Comment time is an optional parameter.

Returns: void


setParentComment

NameDescription
setParentComment (Comment)Gets or sets parent comment. Read/write IComment.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown when setting the value leads to a circular reference

setParentComment

NameDescription
setParentComment (ModernComment)Gets or sets parent comment. Read/write IComment.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown when setting the value leads to a circular reference

setPosition

NameDescription
setPosition (Point2D.Float)Returns or sets the position of a comment on a slide. Read/write java.awt.geom.Point2D.Float.

Returns: void


setText

NameDescription
setText (String)Returns or sets the plain text of a slide comment. Read/write String.

Returns: void