IModernComment

IModernComment interface

Represents a comment on a slide.

public interface IModernComment : IComment

Properties

NameDescription
AsIComment { get; }Allows to get base IComment interface. Read-only IComment.
Shape { get; }Returns a shape associated with the comment. Read-only IShape.
Status { get; set; }Returns or sets the status of the comment. Read/write ModernCommentStatus.
TextSelectionLength { get; set; }Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write Int32.
TextSelectionStart { get; set; }Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write Int32.

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