## ShapeCollection class

Stellt alle Formen in einem Arbeitsblatt/Diagramm dar.

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

## Eigenschaften

| Name | Beschreibung |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase`1/capacity) { get; set; } |  |
| [Count](../../aspose.cells/collectionbase`1/count) { get; } |  |
| [Item](../../aspose.cells.drawing/shapecollection/item) { get; } | Ruft das Formobjekt am spezifischen Index ab. (2 indexers) |
| [Item](../../aspose.cells/collectionbase`1/item) { get; set; } |  |

## Methoden

| Name | Beschreibung |
| --- | --- |
| [AddActiveXControl](../../aspose.cells.drawing/shapecollection/addactivexcontrol)(ControlType, int, int, int, int, int, int) | Erstellt ein Activex-Steuerelement. |
| [AddArc](../../aspose.cells.drawing/shapecollection/addarc)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Bogenform hinzu. |
| [AddAutoShape](../../aspose.cells.drawing/shapecollection/addautoshape)(AutoShapeType, int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine AutoForm hinzu. |
| [AddAutoShapeInChart](../../aspose.cells.drawing/shapecollection/addautoshapeinchart)(AutoShapeType, int, int, int, int) | Fügt dem Diagramm eine AutoForm hinzu. |
| [AddButton](../../aspose.cells.drawing/shapecollection/addbutton)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Schaltfläche hinzu. |
| [AddCheckBox](../../aspose.cells.drawing/shapecollection/addcheckbox)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Kontrollkästchen hinzu. |
| [AddComboBox](../../aspose.cells.drawing/shapecollection/addcombobox)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine ComboBox hinzu. |
| [AddCopy](../../aspose.cells.drawing/shapecollection/addcopy)(Shape, int, int, int, int) | Fügt dem Arbeitsblatt eine Form hinzu und kopiert sie. |
| [AddFreeFloatingShape](../../aspose.cells.drawing/shapecollection/addfreefloatingshape)(MsoDrawingType, int, int, int, int, byte[], bool) | Fügt dem Arbeitsblatt eine frei schwebende Form hinzu. Gilt nur für Linien-/Bildform. |
| [AddGroupBox](../../aspose.cells.drawing/shapecollection/addgroupbox)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine GroupBox hinzu. |
| [AddIcons](../../aspose.cells.drawing/shapecollection/addicons)(int, int, int, int, int, int, byte[], byte[]) | Fügt SVG-Bild hinzu. |
| [AddLabel](../../aspose.cells.drawing/shapecollection/addlabel)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Label hinzu. |
| [AddLabelInChart](../../aspose.cells.drawing/shapecollection/addlabelinchart)(int, int, int, int) | Fügt dem Diagramm eine Beschriftung hinzu. |
| [AddLine](../../aspose.cells.drawing/shapecollection/addline)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Linienform hinzu. |
| [AddLinkedPicture](../../aspose.cells.drawing/shapecollection/addlinkedpicture)(int, int, int, int, string) | Füge ein verlinktes Bild hinzu. |
| [AddListBox](../../aspose.cells.drawing/shapecollection/addlistbox)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine ListBox hinzu. |
| [AddOleObject](../../aspose.cells.drawing/shapecollection/addoleobject)(int, int, int, int, int, int, byte[]) |  |
| [AddOleObjectWithLinkedImage](../../aspose.cells.drawing/shapecollection/addoleobjectwithlinkedimage)(int, int, int, int, string) | Füge ein verlinktes Bild hinzu. |
| [AddOval](../../aspose.cells.drawing/shapecollection/addoval)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Oval hinzu. |
| [AddPicture](../../aspose.cells.drawing/shapecollection/addpicture#addpicture)(int, int, int, int, Stream) | Fügt der Sammlung ein Bild hinzu. |
| [AddPicture](../../aspose.cells.drawing/shapecollection/addpicture#addpicture_1)(int, int, Stream, int, int) | Fügt der Sammlung ein Bild hinzu. |
| [AddPictureInChart](../../aspose.cells.drawing/shapecollection/addpictureinchart)(int, int, Stream, int, int) | Fügt ein Bild zum Diagramm hinzu. |
| [AddRadioButton](../../aspose.cells.drawing/shapecollection/addradiobutton)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt einen RadioButton hinzu. |
| [AddRectangle](../../aspose.cells.drawing/shapecollection/addrectangle)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine RectangleShape hinzu. |
| [AddScrollBar](../../aspose.cells.drawing/shapecollection/addscrollbar)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Bildlaufleiste hinzu. |
| [AddShape](../../aspose.cells.drawing/shapecollection/addshape)(MsoDrawingType, int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Form hinzu. |
| [AddShapeInChart](../../aspose.cells.drawing/shapecollection/addshapeinchart#addshapeinchart)(MsoDrawingType, PlacementType, int, int, int, int) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
| [AddShapeInChart](../../aspose.cells.drawing/shapecollection/addshapeinchart#addshapeinchart_1)(MsoDrawingType, PlacementType, int, int, int, int, byte[]) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
| [AddShapeInChartByScale](../../aspose.cells.drawing/shapecollection/addshapeinchartbyscale#addshapeinchartbyscale)(MsoDrawingType, PlacementType, double, double, double, double) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind Prozentskalen des Diagrammbereichs. |
| [AddShapeInChartByScale](../../aspose.cells.drawing/shapecollection/addshapeinchartbyscale#addshapeinchartbyscale_1)(MsoDrawingType, PlacementType, double, double, double, double, byte[]) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
| [AddSpinner](../../aspose.cells.drawing/shapecollection/addspinner)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Kreisel hinzu. |
| [AddSvg](../../aspose.cells.drawing/shapecollection/addsvg)(int, int, int, int, int, int, byte[], byte[]) | Fügt SVG-Bild hinzu. |
| [AddTextBox](../../aspose.cells.drawing/shapecollection/addtextbox)(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Textfeld hinzu. |
| [AddTextBoxInChart](../../aspose.cells.drawing/shapecollection/addtextboxinchart)(int, int, int, int) | Fügt dem Diagramm ein Textfeld hinzu. |
| [AddTextEffect](../../aspose.cells.drawing/shapecollection/addtexteffect)(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int, int, int) | Fügt ein WordArt-Objekt ein. |
| [AddTextEffectInChart](../../aspose.cells.drawing/shapecollection/addtexteffectinchart)(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int) | Fügt ein WordArt-Objekt in das Diagramm ein |
| [AddWordArt](../../aspose.cells.drawing/shapecollection/addwordart)(PresetWordArtStyle, string, int, int, int, int, int, int) | Fügt voreingestelltes WordArt seit Excel 2007 hinzu.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)() | Alle Formen löschen. (2 methods) |
| [Contains](../../aspose.cells/collectionbase`1/contains)(Shape) |  |
| [CopyCommentsInRange](../../aspose.cells.drawing/shapecollection/copycommentsinrange)(ShapeCollection, CellArea, int, int) | Alle Kommentare im Bereich kopieren. |
| [CopyInRange](../../aspose.cells.drawing/shapecollection/copyinrange)(ShapeCollection, CellArea, int, int, bool) | Shapes im Bereich in den Zielbereich kopieren. |
| [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) | Formen im Bereich löschen. Formkommentare werden nicht gelöscht. |
| [DeleteShape](../../aspose.cells.drawing/shapecollection/deleteshape)(Shape) | Eine Form löschen. Wenn sich die Form in der Gruppe befindet oder eine Kommentarform ist, wird sie nicht gelöscht. |
| [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[]) | Gruppieren Sie die Formen. |
| [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) | Entfernen Sie die Form. |
| [RemoveAt](../../aspose.cells.drawing/shapecollection/removeat#removeat)(int) | Entfernen Sie die Form. (2 methods) |
| [Ungroup](../../aspose.cells.drawing/shapecollection/ungroup)(GroupShape) | Hebt die Gruppierung der Formelemente auf. |
| [UpdateSelectedValue](../../aspose.cells.drawing/shapecollection/updateselectedvalue)() | Aktualisiert den ausgewählten Wert um den Wert der verknüpften Zelle der Formen. |

### Beispiele

```csharp

[C#]

//Instanziieren eines Workbook-Objekts
Workbook workbook = new Workbook();

//ShapeCollection abrufen
ShapeCollection shapes = workbook.Worksheets[0].Shapes;

// Mach dein Geschäft

//Speichern Sie die Excel-Datei.
workbook.Save("result.xlsx");
```

### Siehe auch

* class [CollectionBase&lt;T&gt;](../../aspose.cells/collectionbase-1)
* class [Shape](../shape)
* namensraum [Aspose.Cells.Drawing](../../aspose.cells.drawing)
* Montage [Aspose.Cells](../../)

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