com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Comment

  • java.lang.Object
    • com.aspose.slides.Comment
  • All Implemented Interfaces:
    IComment


    public final class Comment
    extends java.lang.Object
    implements IComment

    Represents a comment on a slide.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ICommentAuthor getAuthor()
      Returns the author of a comment.
      java.util.Date getCreatedTime()
      Returns or sets the time of a comment creation.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      IComment getParentComment()
      Gets or sets parent comment.
      java.awt.geom.Point2D.Float getPosition()
      Returns or sets the position of a comment on a slide.
      ISlide getSlide()
      Returns or sets the parent slide of a comment.
      java.lang.String getText()
      Returns or sets the plain text of a slide comment.
      void remove()
      Removes comment and all its replies from the parent collection.
      void setCreatedTime(java.util.Date value)
      Returns or sets the time of a comment creation.
      void setParentComment(IComment value)
      Gets or sets parent comment.
      void setPosition(java.awt.geom.Point2D.Float value)
      Returns or sets the position of a comment on a slide.
      void setText(java.lang.String value)
      Returns or sets the plain text of a slide comment.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getText

        public final java.lang.String getText()

        Returns or sets the plain text of a slide comment. Read/write String.

        Specified by:
        getText in interface IComment
      • setText

        public final void setText(java.lang.String value)

        Returns or sets the plain text of a slide comment. Read/write String.

        Specified by:
        setText in interface IComment
      • getCreatedTime

        public final java.util.Date 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 Date.


        Comment time is an optional parameter.
        Specified by:
        getCreatedTime in interface IComment
      • setCreatedTime

        public final void setCreatedTime(java.util.Date value)

        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 Date.


        Comment time is an optional parameter.
        Specified by:
        setCreatedTime in interface IComment
      • getSlide

        public final ISlide getSlide()

        Returns or sets the parent slide of a comment. Read-only ISlide.

        Specified by:
        getSlide in interface IComment
      • getPosition

        public final java.awt.geom.Point2D.Float getPosition()

        Returns or sets the position of a comment on a slide. Read/write Point2D.Float.

        Specified by:
        getPosition in interface IComment
      • setPosition

        public final void setPosition(java.awt.geom.Point2D.Float value)

        Returns or sets the position of a comment on a slide. Read/write Point2D.Float.

        Specified by:
        setPosition in interface IComment
      • remove

        public final void remove()

        Removes comment and all its replies from the parent collection.

        Specified by:
        remove in interface IComment
        Throws:
        PptxEditException - Thrown if comment is already removed
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.