ModernComment

Inheritance: java.lang.Object, com.aspose.slides.Comment

All Implemented Interfaces: com.aspose.slides.IModernComment, com.aspose.slides.IDOMObject

public final class ModernComment extends Comment implements IModernComment, IDOMObject

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

MethodDescription
getShape()Returns a shape associated with the comment.
getTextSelectionStart()Gets or sets starting position of text selection in text frame if the comment associated with AutoShape.
setTextSelectionStart(int value)Gets or sets starting position of text selection in text frame if the comment associated with AutoShape.
getTextSelectionLength()Gets or sets text selection length in text frame if the comment associated with AutoShape.
setTextSelectionLength(int value)Gets or sets text selection length in text frame if the comment associated with AutoShape.
getStatus()Gets or sets the status of the comment.
setStatus(byte value)Gets or sets the status of the comment.
getParent_Immediate()

getShape()

public final IShape getShape()

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

Returns: IShape

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.

Returns: int

setTextSelectionStart(int value)

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.

Parameters:

ParameterTypeDescription
valueint

getTextSelectionLength()

public final int getTextSelectionLength()

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

Returns: int

setTextSelectionLength(int value)

public final void setTextSelectionLength(int value)

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

Parameters:

ParameterTypeDescription
valueint

getStatus()

public final byte getStatus()

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

Returns: byte

setStatus(byte value)

public final void setStatus(byte value)

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

Parameters:

ParameterTypeDescription
valuebyte

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject