IModernComment
All Implemented Interfaces: com.aspose.slides.IComment
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(); }
Methods
Method | Description |
---|---|
getShape() | Returns a shape associated with the comment. |
getTextSelectionStart() | Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. |
setTextSelectionStart(int value) | Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. |
getTextSelectionLength() | Returns or sets text selection length in text frame if the comment associated with AutoShape. |
setTextSelectionLength(int value) | Returns or sets text selection length in text frame if the comment associated with AutoShape. |
getStatus() | Returns or sets the status of the comment. |
setStatus(byte value) | Returns or sets the status of the comment. |
getShape()
public abstract IShape getShape()
Returns a shape associated with the comment. Read-only IShape.
Returns: IShape
getTextSelectionStart()
public abstract int getTextSelectionStart()
Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.
Returns: int
setTextSelectionStart(int value)
public abstract void setTextSelectionStart(int value)
Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write int.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getTextSelectionLength()
public abstract int getTextSelectionLength()
Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.
Returns: int
setTextSelectionLength(int value)
public abstract void setTextSelectionLength(int value)
Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write int.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getStatus()
public abstract byte getStatus()
Returns or sets the status of the comment. Read/write ModernCommentStatus.
Returns: byte
setStatus(byte value)
public abstract void setStatus(byte value)
Returns or sets the status of the comment. Read/write ModernCommentStatus.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |