CommentsPart

General

CommentsPart és una classe en Aspose.Slides per NET.

Gestiona una part XML de comentaris d’un diapositiu (ppt/comments/slideN.xml). Existeix un fitxer per diapasó que té comentari.

Propietats

NameTypeAccessDescription
PartNamestringReadGets or sets the name of the part that stores comments

Mètodes

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.
 Català