com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ModernComment

  • All Implemented Interfaces:
    IComment, IModernComment


    public final class ModernComment
    extends Comment
    implements IModernComment

    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

      • getTextSelectionStart

        public final int getTextSelectionStart()

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

        Specified by:
        getTextSelectionStart in interface IModernComment
      • setTextSelectionStart

        public final void setTextSelectionStart(int value)

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

        Specified by:
        setTextSelectionStart in interface IModernComment
      • getTextSelectionLength

        public final int getTextSelectionLength()

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

        Specified by:
        getTextSelectionLength in interface IModernComment
      • setTextSelectionLength

        public final void setTextSelectionLength(int value)

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

        Specified by:
        setTextSelectionLength in interface IModernComment
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.

        Overrides:
        getParent_Immediate in class Comment