AddModernComment()
Contents
[
Hide
]ICommentCollection::AddModernComment(System::String, System::SharedPtr<ISlide>, System::SharedPtr<IShape>, System::Drawing::PointF, System::DateTime) method
Add new modern comment at the end of a collection.
virtual System::SharedPtr<IModernComment> Aspose::Slides::ICommentCollection::AddModernComment(System::String text, System::SharedPtr<ISlide> slide, System::SharedPtr<IShape> shape, System::Drawing::PointF position, System::DateTime creationTime)=0
Arguments
Parameter | Type | Description |
---|---|---|
text | System::String | Plain text of a new modern comment. |
slide | System::SharedPtr<ISlide> | Slide in a presentation where to add a new modern comment. |
shape | System::SharedPtr<IShape> | Shape on a slide to which a new modern comment is associated. |
position | System::Drawing::PointF | Position on a slide where to add a new modern comment. |
creationTime | System::DateTime | Time of a modern comment creation. |
Return Value
Added modern comment.
Remarks
auto pres = System::MakeObject<Presentation>();
auto slide = pres->get_Slides()->idx_get(0);
auto newAuthor = pres->get_CommentAuthors()->AddAuthor(u"Some Author", u"SA");
newAuthor->get_Comments()->AddModernComment(u"This is modern comment", slide, nullptr, PointF(100.0f, 100.0f), DateTime::get_Now());
pres->Save(u"output.pptx", SaveFormat::Pptx);
See Also
- Typedef SharedPtr
- Class IModernComment
- Class String
- Class ISlide
- Class IShape
- Class PointF
- Class DateTime
- Class ICommentCollection
- Namespace Aspose::Slides
- Library Aspose.Slides