CommentsPart

CommentsPart

Vue de l’ensemble

‘CommentsPart’ est une classe dans Aspose.Slides FOSS pour .NET.

Gérer un commentaire slide dans la partie XML ( ppt/comments/slideN.xml ). Un fichier existe par slite qui a des commentaires.

Cette classe fournit 16 méthodes pour travailler avec les objets CommentsPart dans des programmes .NET. Les méthodologies disponibles comprennent: ‘AddComment’, ‘Clear’, ComputeRelativeTarget', ‘Count’, 'FindCommenByIdx, ‘GetComments , 'DécutionsBieAuthor ‘InsertCommente’, ‘‘IsEmpty`’, “Load’ et 4 méthode supplémentaires. Tous les membres exportés sont accessibles à n’importe quelle application .Net après l’installation de l’Aspoe.Slides FOSS pour le package .net. Propriétés : ‘PartyName’.

Description

‘CommentsPart’ est une classe dans la bibliothèque Aspose.Slides FOSS pour .NET qui expose 16 méthodes et 1 propriété pour l’utilisation programmée.

La classe fournit également la propriété ‘PartName’ (qui prend le nom de partie).

Propriétés

NameTypeAccessDescription
PartNamestringReadGets the part name.

méthodes

SignatureDescription
Load()Loads the comments XML from the package.
GetComments()Returns all comments in this part.
GetCommentsByAuthor(authorId: int)Returns comments belonging to the specified author.
FindCommentByIdxAll(idx: int)Finds a comment by its index across all authors.
FindCommentByIdx(authorId: int, idx: int)Finds a comment by author ID and index.
AddComment(authorId: int, idx: int, text: string, posX: float, posY: float, dtStr: string, parentIdx: int?)Appends a new comment element and returns its data.
InsertComment(index: int, authorId: int, idx: int, text: string, posX: float, posY: float, dtStr: string, parentIdx: int?)Inserts a comment at the given index among existing comments.
RemoveComment(authorId: int, idx: int)Removes a comment by author ID and index.
RemoveCommentElem(elem: XElement)Removes the specified XML element from the comments list.
RemoveCommentsAt(index: int)Removes the comment at the specified position.
Clear()Removes all comment elements.
Count()Returns the number of comments.
IsEmpty()Returns true if there are no comments.
Save()Saves the comments XML back to the package.
ResolveTarget(fromPart: string, target: string)Resolves a relative target path to an absolute part name.
ComputeRelativeTarget(fromPart: string, toPart: string)Computes a relative path from one part to another.

Voir aussi

  • Aspose.Slides - référence API d’entreprise
  • Aspose.Slides pour .NET — Enterprise API Reference
 Français