com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IModernComment

  • All Superinterfaces:
    IComment
    All Known Implementing Classes:
    ModernComment


    public interface IModernComment
    extends IComment

    Represents a comment on a slide.


     
     Presentation pres = new Presentation();
     try {
         ICommentAuthor newAuthor = pres.getCommentAuthors().addAuthor("Some Author", "SA");
         newAuthor.getComments().addModernComment("This is modern comment", pres.getSlides().get_Item(0), null, new Point2D.Float(100, 100), new Date());
         pres.save(outPptxFileName, SaveFormat.Pptx);
     } finally {
         if (pres != null) pres.dispose();
     }
     
    • Method Detail

      • getShape

        IShape getShape()

        Returns a shape associated with the comment. Read-only IShape.

      • getTextSelectionStart

        int getTextSelectionStart()

        Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.

      • setTextSelectionStart

        void setTextSelectionStart(int value)

        Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.

      • getTextSelectionLength

        int getTextSelectionLength()

        Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.

      • setTextSelectionLength

        void setTextSelectionLength(int value)

        Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.

      • getStatus

        byte getStatus()

        Returns or sets the status of the comment. Read/write ModernCommentStatus.

      • setStatus

        void setStatus(byte value)

        Returns or sets the status of the comment. Read/write ModernCommentStatus.