AddModernComment
ICommentCollection.AddModernComment Methode
Fügen Sie einen neuen modernen Kommentar am Ende einer Sammlung hinzu.
public IModernComment AddModernComment(string text, ISlide slide, IShape shape, PointF position,
DateTime creationTime)
Parameter | Typ | Beschreibung |
---|---|---|
text | String | Klartext eines neuen modernen Kommentars. |
slide | ISlide | Folie in einer Präsentation, in der ein neuer moderner Kommentar hinzugefügt werden soll. |
shape | IShape | Form auf einer Folie, die mit einem neuen modernen Kommentar verknüpft ist. |
position | PointF | Position auf einer Folie, an der ein neuer moderner Kommentar hinzugefügt werden soll. |
creationTime | DateTime | Zeitpunkt der Erstellung eines modernen Kommentars. |
Rückgabewert
Hinzugefügter moderner Kommentar.
Beispiele
[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);
}
Siehe auch
- interface IModernComment
- interface ISlide
- interface IShape
- interface ICommentCollection
- namespace Aspose.Slides
- assembly Aspose.Slides