CommentAuthorCollection
Overview
CommentAuthorCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: ICommentAuthorCollection.
Represents a collection of comment authors backed by a CommentAuthorsPart.
This class provides 7 methods for working with CommentAuthorCollection objects in .NET programs.
Available methods include: AddAuthor, Clear, FindByName, FindByNameAndInitials, Remove, RemoveAt, ToArray.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsICollection, AsIEnumerable, Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
AsICollection | IList<ICommentAuthor> | Read | Gets the as i collection. |
AsIEnumerable | IEnumerable<ICommentAuthor> | Read | Gets the as i enumerable. |
Count | int | Read | Gets the number of authors in the collection. |
Methods
| Signature | Description |
|---|---|
AddAuthor(name: string, initials: string) | Adds a new comment author with the specified name and initials |
ToArray() | Returns the authors as an array of ICommentAuthor |
FindByName(name: string) | Returns the first author whose name matches the given string |
FindByNameAndInitials(name: string, initials: string) | Returns the author matching both name and initials |
RemoveAt(index: int) | Removes the author at the specified zero‑based index |
Remove(author: ICommentAuthor) | Removes the given ICommentAuthor instance from the collection |
Clear() | Removes all authors from the collection |