ModernComment

ModernComment class

Represents a comment on a slide.

getAuthor

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

Result: 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.

Result: Date


getParentComment

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

Result: Comment, ModernComment

Error

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.

Result: Point2D.Float


getShape

NameDescription
getShape()Returns a shape associated with the comment. Read-only IShape.

Result: SummaryZoomSection, AutoShape, AudioFrame, OleObjectFrame, SummaryZoomFrame, ZoomFrame, GraphicalObject, PictureFrame, ZoomObject, VideoFrame, GeometryShape, SmartArtShape, SmartArt, Ink, Chart, GroupShape, Table, SectionZoomFrame, Shape, LegacyDiagram, Connector


getSlide

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

Result: Slide


getStatus

NameDescription
getStatus()Gets or sets the status of the comment. Read/write ModernCommentStatus.

Result: byte


getText

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

Result: String


getTextSelectionLength

NameDescription
getTextSelectionLength()Gets or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.

Result: int


getTextSelectionStart

NameDescription
getTextSelectionStart()Gets or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.

Result: int


remove

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

Error

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.

setParentComment

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

Error

ErrorCondition
PptxEditExceptionThrown when setting the value leads to a circular reference

setParentComment

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

Error

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.

setStatus

NameDescription
setStatus(byte)Gets or sets the status of the comment. Read/write ModernCommentStatus.

setText

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

setTextSelectionLength

NameDescription
setTextSelectionLength(int)Gets or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.

setTextSelectionStart

NameDescription
setTextSelectionStart(int)Gets or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.