AddModernComment
CommentCollection.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, auf der ein neuer moderner Kommentar hinzugefügt werden soll. |
shape | IShape | Form auf einer Folie, der ein neuer moderner Kommentar zugeordnet 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
- Klasse CommentCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides