CommentCollection
Vue de l’ensemble
‘CommentCollection’ est une classe dans Aspose.Slides FOSS pour Python.Déduit de: ‘BaseColection’, ‘IComment Collection’.
Il représente une collection de commentaires d’un auteur.
Cette classe fournit 7 méthodes pour travailler avec les objets de commentaire dans les programmes Python. Les méthodologies disponibles comprennent: add_comment, clear , find_Comment_by_idx ; insert_komment‘ ; 'remove; remover_at et to_array. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation du package PyThone Aspose.Slides FOSS. Propriétés : as_i_collection : ‘as _i-enumerable` .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
as_i_collection | list | Read | Gets the as i collection. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
length | int | Read | Returns the number of elements. |
méthodes
| Signature | Description |
|---|---|
to_array() → list['IComment'] | Returns a list of IComment objects representing each comment in the collection |
add_comment(text, slide, position, creation_time) → 'IComment' | Add a comment to the end of this author’s comment collection for the given slide. |
insert_comment(index, text, slide, position, creation_time) → 'IComment' | Insert a comment at the given position in this author’s comment list. |
remove_at(index: int) | Removes the comment located at the given index from the collection |
remove(comment) | Remove the given comment (and its replies) from the collection. |
clear() | Remove all comments by this author across all slides. |
find_comment_by_idx(idx) → Optional['IComment'] | Find a comment by its idx value (unique per author). |
Voir aussi
- Aspose.Slides - référence API d’entreprise