---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/icommentauthorcollection
---

# ICommentAuthorCollection

## Overview

`ICommentAuthorCollection` is an interface in Aspose.Slides FOSS for Java.

Represents a collection of comment authors in a presentation.

This interface declares 11 methods for ICommentAuthorCollection objects in Java programs.
Available methods include: `addAuthor`, `asICollection`, `asIEnumerable`, `clear`, `findByName`, `findByNameAndInitials`, `get`, `remove`, `removeAt`, `size`, `toArray`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `addAuthor(name: String, initials: String)` → `ICommentAuthor` | Adds a new author. |
| `toArray()` → `ICommentAuthor[]` | Returns all authors as an array. |
| `findByName(name: String)` → `List<ICommentAuthor>` | Finds authors by name. |
| `findByNameAndInitials(name: String, initials: String)` → `List<ICommentAuthor>` | Finds authors by name and initials. |
| `removeAt(index: int)` | Removes the author at the given index, including all their comments. |
| `remove(author: ICommentAuthor)` | Removes an author from the collection. |
| `clear()` | Removes all authors and their comments from the collection. |
| `get(index: int)` → `ICommentAuthor` | Returns the author at the given index. |
| `size()` → `int` | Returns the number of authors. |
| `asICollection()` → `List<ICommentAuthor>` | Returns the collection as a {@link List}. |
| `asIEnumerable()` → `Iterable<ICommentAuthor>` | Returns the collection as an {@link Iterable}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)