ICommentCollection
Przegląd
ICommentCollection jest interfejsem w Aspose.Slides FOSS dla Java.
Reprezentuje zbiór komentarzy należących do jednego autora.
Ten interfejs udostępnia 12 metod do pracy z obiektami ICommentCollection w programach Java. Dostępne metody to: addComment, asICollection, asIEnumerable, clear, findCommentByIdx, get, insertComment, remove, removeAt, size, toArray. Wszystkie publiczne członki są dostępne dla każdej aplikacji Java po zainstalowaniu pakietu Aspose.Slides FOSS dla Java.
Metody
| Sygnatura | Opis |
|---|---|
addComment(text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime) → IComment | Dodaje komentarz do kolekcji. |
insertComment(index: int, text: String, slide: ISlide, position: PointF, createdTime: LocalDateTime) → IComment | Wstawia komentarz pod podanym indeksem. |
removeAt(index: int) | Usuwa komentarz pod podanym indeksem. |
remove(comment: IComment) | Usuwa podany komentarz (oraz jego odpowiedzi) z kolekcji. |
clear() | Usuwa wszystkie komentarze z tej kolekcji. |
get(index: int) → IComment | Zwraca komentarz o podanym indeksie. |
size() → int | Zwraca liczbę komentarzy. |
toArray() → IComment[] | Zwraca wszystkie komentarze jako tablicę. |
toArray(startIndex: int, count: int) → IComment[] | Zwraca podzbiór komentarzy jako tablicę. |
asICollection() → List<IComment> | Zwraca tę kolekcję jako listę. |
asIEnumerable() → Iterable<IComment> | Zwraca tę kolekcję jako iterowalny. |
findCommentByIdx(idx: int) → Optional<IComment> | Znajduje komentarz według jego unikalnego indeksu (dla każdego autora). |