## ShapeCollection class

Représente toute la forme dans une feuille de calcul/graphique.

```csharp
public class ShapeCollection : CollectionBase<Shape>
```

## Propriétés

| Nom | La description |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase`1/capacity) { get; set; } |  |
| [Count](../../aspose.cells/collectionbase`1/count) { get; } |  |
| [Item](../../aspose.cells.drawing/shapecollection/item) { get; } | Obtient l'objet de forme à l'index spécifique. (2 indexers) |
| [Item](../../aspose.cells/collectionbase`1/item) { get; set; } |  |

## Méthodes

| Nom | La description |
| --- | --- |
| [AddActiveXControl](../../aspose.cells.drawing/shapecollection/addactivexcontrol)(ControlType, int, int, int, int, int, int) | Crée un contrôle Activex. |
| [AddArc](../../aspose.cells.drawing/shapecollection/addarc)(int, int, int, int, int, int) | Ajoute un ArcShape à la feuille de calcul. |
| [AddAutoShape](../../aspose.cells.drawing/shapecollection/addautoshape)(AutoShapeType, int, int, int, int, int, int) | Ajoute une forme automatique à la feuille de calcul. |
| [AddAutoShapeInChart](../../aspose.cells.drawing/shapecollection/addautoshapeinchart)(AutoShapeType, int, int, int, int) | Ajoute une forme automatique au graphique. |
| [AddButton](../../aspose.cells.drawing/shapecollection/addbutton)(int, int, int, int, int, int) | Ajoute un bouton à la feuille de calcul. |
| [AddCheckBox](../../aspose.cells.drawing/shapecollection/addcheckbox)(int, int, int, int, int, int) | Ajoute une case à cocher à la feuille de calcul. |
| [AddComboBox](../../aspose.cells.drawing/shapecollection/addcombobox)(int, int, int, int, int, int) | Ajoute un ComboBox à la feuille de calcul. |
| [AddCopy](../../aspose.cells.drawing/shapecollection/addcopy)(Shape, int, int, int, int) | Ajoute et copie une forme dans la feuille de calcul. |
| [AddFreeFloatingShape](../../aspose.cells.drawing/shapecollection/addfreefloatingshape)(MsoDrawingType, int, int, int, int, byte[], bool) | Ajoute une forme flottante libre à la feuille de calcul. S'applique uniquement à la forme de ligne/image. |
| [AddGroupBox](../../aspose.cells.drawing/shapecollection/addgroupbox)(int, int, int, int, int, int) | Ajoute un GroupBox à la feuille de calcul. |
| [AddIcons](../../aspose.cells.drawing/shapecollection/addicons)(int, int, int, int, int, int, byte[], byte[]) | Ajoute une image svg. |
| [AddLabel](../../aspose.cells.drawing/shapecollection/addlabel)(int, int, int, int, int, int) | Ajoute une étiquette à la feuille de calcul. |
| [AddLabelInChart](../../aspose.cells.drawing/shapecollection/addlabelinchart)(int, int, int, int) | Ajoute une étiquette au graphique. |
| [AddLine](../../aspose.cells.drawing/shapecollection/addline)(int, int, int, int, int, int) | Ajoute une forme de ligne à la feuille de calcul. |
| [AddLinkedPicture](../../aspose.cells.drawing/shapecollection/addlinkedpicture)(int, int, int, int, string) | Ajouter une image liée. |
| [AddListBox](../../aspose.cells.drawing/shapecollection/addlistbox)(int, int, int, int, int, int) | Ajoute un ListBox à la feuille de calcul. |
| [AddOleObject](../../aspose.cells.drawing/shapecollection/addoleobject)(int, int, int, int, int, int, byte[]) |  |
| [AddOleObjectWithLinkedImage](../../aspose.cells.drawing/shapecollection/addoleobjectwithlinkedimage)(int, int, int, int, string) | Ajouter une image liée. |
| [AddOval](../../aspose.cells.drawing/shapecollection/addoval)(int, int, int, int, int, int) | Ajoute un ovale à la feuille de calcul. |
| [AddPicture](../../aspose.cells.drawing/shapecollection/addpicture#addpicture)(int, int, int, int, Stream) | Ajoute une image à la collection. |
| [AddPicture](../../aspose.cells.drawing/shapecollection/addpicture#addpicture_1)(int, int, Stream, int, int) | Ajoute une image à la collection. |
| [AddPictureInChart](../../aspose.cells.drawing/shapecollection/addpictureinchart)(int, int, Stream, int, int) | Ajoute une image au graphique. |
| [AddRadioButton](../../aspose.cells.drawing/shapecollection/addradiobutton)(int, int, int, int, int, int) | Ajoute un RadioButton à la feuille de calcul. |
| [AddRectangle](../../aspose.cells.drawing/shapecollection/addrectangle)(int, int, int, int, int, int) | Ajoute un RectangleShape à la feuille de calcul. |
| [AddScrollBar](../../aspose.cells.drawing/shapecollection/addscrollbar)(int, int, int, int, int, int) | Ajoute une barre de défilement à la feuille de calcul. |
| [AddShape](../../aspose.cells.drawing/shapecollection/addshape)(MsoDrawingType, int, int, int, int, int, int) | Ajoute une forme à la feuille de calcul. |
| [AddShapeInChart](../../aspose.cells.drawing/shapecollection/addshapeinchart#addshapeinchart)(MsoDrawingType, PlacementType, int, int, int, int) | Ajouter une forme au graphique. Toutes les unités correspondent à 1/4000 de la zone du graphique. |
| [AddShapeInChart](../../aspose.cells.drawing/shapecollection/addshapeinchart#addshapeinchart_1)(MsoDrawingType, PlacementType, int, int, int, int, byte[]) | Ajouter une forme au graphique. Toutes les unités correspondent à 1/4000 de la zone du graphique. |
| [AddShapeInChartByScale](../../aspose.cells.drawing/shapecollection/addshapeinchartbyscale#addshapeinchartbyscale)(MsoDrawingType, PlacementType, double, double, double, double) | Ajouter une forme au graphique. Toutes les unités correspondent à l'échelle en pourcentage de la zone de graphique. |
| [AddShapeInChartByScale](../../aspose.cells.drawing/shapecollection/addshapeinchartbyscale#addshapeinchartbyscale_1)(MsoDrawingType, PlacementType, double, double, double, double, byte[]) | Ajouter une forme au graphique. Toutes les unités correspondent à 1/4000 de la zone du graphique. |
| [AddSpinner](../../aspose.cells.drawing/shapecollection/addspinner)(int, int, int, int, int, int) | Ajoute un Spinner à la feuille de calcul. |
| [AddSvg](../../aspose.cells.drawing/shapecollection/addsvg)(int, int, int, int, int, int, byte[], byte[]) | Ajoute une image svg. |
| [AddTextBox](../../aspose.cells.drawing/shapecollection/addtextbox)(int, int, int, int, int, int) | Ajoute une zone de texte à la feuille de calcul. |
| [AddTextBoxInChart](../../aspose.cells.drawing/shapecollection/addtextboxinchart)(int, int, int, int) | Ajoute une zone de texte au graphique. |
| [AddTextEffect](../../aspose.cells.drawing/shapecollection/addtexteffect)(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int, int, int) | Insère un objet WordArt. |
| [AddTextEffectInChart](../../aspose.cells.drawing/shapecollection/addtexteffectinchart)(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int) | Insère un objet WordArt dans le graphique |
| [AddWordArt](../../aspose.cells.drawing/shapecollection/addwordart)(PresetWordArtStyle, string, int, int, int, int, int, int) | Ajoute un WordArt prédéfini depuis Excel 2007.s |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Shape) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(Shape, IComparer&lt;Shape&gt;) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(int, int, Shape, IComparer&lt;Shape&gt;) |  |
| [Clear](../../aspose.cells.drawing/shapecollection/clear#clear)() | Effacer toutes les formes. (2 methods) |
| [Contains](../../aspose.cells/collectionbase`1/contains)(Shape) |  |
| [CopyCommentsInRange](../../aspose.cells.drawing/shapecollection/copycommentsinrange)(ShapeCollection, CellArea, int, int) | Copiez tous les commentaires de la plage. |
| [CopyInRange](../../aspose.cells.drawing/shapecollection/copyinrange)(ShapeCollection, CellArea, int, int, bool) | Copiez les formes de la plage vers la plage de destination. |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Shape[]) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(Shape[], int) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(int, Shape[], int, int) |  |
| [DeleteInRange](../../aspose.cells.drawing/shapecollection/deleteinrange)(CellArea) | Supprimer les formes de la plage. Les formes de commentaire ne seront pas supprimées. |
| [DeleteShape](../../aspose.cells.drawing/shapecollection/deleteshape)(Shape) | Supprimer une forme. Si la forme est dans le groupe ou est une forme de commentaire, elle ne sera pas supprimée. |
| [Exists](../../aspose.cells/collectionbase`1/exists)(Predicate&lt;Shape&gt;) |  |
| [Find](../../aspose.cells/collectionbase`1/find)(Predicate&lt;Shape&gt;) |  |
| [FindAll](../../aspose.cells/collectionbase`1/findall)(Predicate&lt;Shape&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(Predicate&lt;Shape&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, Predicate&lt;Shape&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, int, Predicate&lt;Shape&gt;) |  |
| [FindLast](../../aspose.cells/collectionbase`1/findlast)(Predicate&lt;Shape&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(Predicate&lt;Shape&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, Predicate&lt;Shape&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, int, Predicate&lt;Shape&gt;) |  |
| [GetEnumerator](../../aspose.cells/collectionbase`1/getenumerator)() |  |
| [Group](../../aspose.cells.drawing/shapecollection/group)(Shape[]) | Regroupez les formes. |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Shape) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Shape, int) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(Shape, int, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Shape) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Shape, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(Shape, int, int) |  |
| [Remove](../../aspose.cells.drawing/shapecollection/remove)(Shape) | Supprimer la forme. |
| [RemoveAt](../../aspose.cells.drawing/shapecollection/removeat#removeat)(int) | Supprimer la forme. (2 methods) |
| [Ungroup](../../aspose.cells.drawing/shapecollection/ungroup)(GroupShape) | Dissocie les éléments de forme. |
| [UpdateSelectedValue](../../aspose.cells.drawing/shapecollection/updateselectedvalue)() | Mettre à jour la valeur sélectionnée par la valeur de la cellule liée des formes. |

### Exemples

```csharp

[C#]

//Instanciation d'un objet Workbook
Workbook workbook = new Workbook();

//obtenir la collection de formes
ShapeCollection shapes = workbook.Worksheets[0].Shapes;

//faites vos affaires

// Enregistrez le fichier excel.
workbook.Save("result.xlsx");
```

### Voir également

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

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