AddModernComment
CommentCollection.AddModernComment method
Add new modern comment at the end of a collection.
public IModernComment AddModernComment(string text, ISlide slide, IShape shape, PointF position,
DateTime creationTime)
Parameter | Type | Description |
---|---|---|
text | String | Plain text of a new modern comment. |
slide | ISlide | Slide in a presentation where to add a new modern comment. |
shape | IShape | Shape on a slide to which a new modern comment is associated. |
position | PointF | Position on a slide where to add a new modern comment. |
creationTime | DateTime | Time of a modern comment creation. |
Return Value
Added modern comment.
Examples
[C#]
using (Presentation pres = new Presentation())
{
ICommentAuthor newAuthor = pres.CommentAuthors.AddAuthor("Some Author", "SA");
newAuthor.Comments.AddModernComment("This is modern comment", pres.Slides[0], null, new PointF(100, 100), DateTime.Now);
pres.Save(outPptxFileName, SaveFormat.Pptx);
}
See Also
- interface IModernComment
- interface ISlide
- interface IShape
- class CommentCollection
- namespace Aspose.Slides
- assembly Aspose.Slides