## CommentCollection class

Encapsule une collection de[`Comment`](../comment) objets.

```csharp
public class CommentCollection : CollectionBase<Comment>
```

## Propriétés

| Nom | La description |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase`1/capacity) { get; set; } |  |
| [Count](../../aspose.cells/collectionbase`1/count) { get; } |  |
| [Item](../../aspose.cells/commentcollection/item) { get; } | Obtient le[`Comment`](../comment) élément à l'index spécifié. (3 indexers) |
| [Item](../../aspose.cells/collectionbase`1/item) { get; set; } |  |

## Méthodes

| Nom | La description |
| --- | --- |
| [Add](../../aspose.cells/commentcollection/add#add_1)(string) | Ajoute un commentaire à la collection. |
| [Add](../../aspose.cells/commentcollection/add#add)(int, int) | Ajoute un commentaire à la collection. |
| [AddThreadedComment](../../aspose.cells/commentcollection/addthreadedcomment#addthreadedcomment_1)(string, string, ThreadedCommentAuthor) | Ajoute un fil de discussion. |
| [AddThreadedComment](../../aspose.cells/commentcollection/addthreadedcomment#addthreadedcomment)(int, int, string, ThreadedCommentAuthor) | Ajoute un fil de discussion. |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Comment) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Comment, IComparer&lt;Comment&gt;) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(int, int, Comment, IComparer&lt;Comment&gt;) |  |
| [Clear](../../aspose.cells/commentcollection/clear#clear)() | Supprime tous les commentaires ; (2 methods) |
| [Contains](../../aspose.cells/collectionbase`1/contains)(Comment) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Comment[]) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Comment[], int) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(int, Comment[], int, int) |  |
| [Exists](../../aspose.cells/collectionbase`1/exists)(Predicate&lt;Comment&gt;) |  |
| [Find](../../aspose.cells/collectionbase`1/find)(Predicate&lt;Comment&gt;) |  |
| [FindAll](../../aspose.cells/collectionbase`1/findall)(Predicate&lt;Comment&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(Predicate&lt;Comment&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, Predicate&lt;Comment&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, int, Predicate&lt;Comment&gt;) |  |
| [FindLast](../../aspose.cells/collectionbase`1/findlast)(Predicate&lt;Comment&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(Predicate&lt;Comment&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, Predicate&lt;Comment&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, int, Predicate&lt;Comment&gt;) |  |
| [GetEnumerator](../../aspose.cells/collectionbase`1/getenumerator)() |  |
| [GetThreadedComments](../../aspose.cells/commentcollection/getthreadedcomments#getthreadedcomments_1)(string) | Obtient les commentaires thématiques par nom de cellule. |
| [GetThreadedComments](../../aspose.cells/commentcollection/getthreadedcomments#getthreadedcomments)(int, int) | Obtient les commentaires filetés par index de ligne et de colonne. |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Comment) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Comment, int) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Comment, int, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Comment) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Comment, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Comment, int, int) |  |
| [RemoveAt](../../aspose.cells/collectionbase`1/removeat)(int) |  |
| [RemoveAt](../../aspose.cells/commentcollection/removeat#removeat_2)(string) | Supprime le commentaire de la cellule spécifique. |
| [RemoveAt](../../aspose.cells/commentcollection/removeat#removeat_1)(int, int) | Supprime le commentaire de la cellule spécifique. |

### Exemples

```csharp
[C#]

Workbook workbook = new Workbook();

CommentCollection comments = workbook.Worksheets[0].Comments;

//faites vos affaires

[Visual Basic]

Dim workbook as Workbook = new Workbook()

Dim comments as CommentCollection = workbook.Worksheets(0).Comments
```

### Voir également

* class [CollectionBase&lt;T&gt;](../collectionbase-1)
* class [Comment](../comment)
* espace de noms [Aspose.Cells](../../aspose.cells)
* Assemblée [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
