ModernComment Class

Represents a comment on a slide.
Inheritance Hierarchy

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.5.0.0 (22.5)
Syntax
public sealed class ModernComment : Comment, 
	IModernComment, IComment

The ModernComment type exposes the following members.

Properties
  NameDescription
Public propertyAuthor
Returns the author of a comment. Read-only ICommentAuthor.
(Inherited from Comment.)
Public propertyCreatedTime
Returns or sets the time of a comment creation. Setting this property to MinValue means no comment time is set. Read/write DateTime.
(Inherited from Comment.)
Public propertyParentComment
Gets or sets parent comment. Read/write IComment.
(Inherited from Comment.)
Public propertyPosition
Returns or sets the position of a comment on a slide. Read/write PointF.
(Inherited from Comment.)
Public propertyShape
Returns a shape associated with the comment. Read-only IShape.
Public propertySlide
Returns or sets the parent slide of a comment. Read-only ISlide.
(Inherited from Comment.)
Public propertyStatus
Gets or sets the status of the comment. Read/write ModernCommentStatus.
Public propertyText
Returns or sets the plain text of a slide comment. Read/write String.
(Inherited from Comment.)
Public propertyTextSelectionLength
Gets or sets text selection length in text frame if the comment associated with AutoShape. Read/write Int32.
Public propertyTextSelectionStart
Gets or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write Int32.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes comment and all its replies from the parent collection.
(Inherited from Comment.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Examples
[C#]
using (Presentation pres = new Presentation())
{
    ICommentAuthor newAuthor = pres.CommentAuthors.AddAuthor("Some Author", "SA");
    IModernComment modernComment = newAuthor.Comments.AddModernComment("This is modern comment", pres.Slides[0], null, new PointF(100, 100), DateTime.Now);

    pres.Save(outPptxFileName, SaveFormat.Pptx);
}
See Also