ShapeCollection
Inhalt
[
Ausblenden
]ShapeCollection class
Stellt alle Formen in einem Arbeitsblatt/Diagramm dar.
public class ShapeCollection : CollectionBase<Shape>
Eigenschaften
Name | Beschreibung |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Ruft das Formobjekt am spezifischen Index ab. (2 indexers) |
Item { get; set; } |
Methoden
Name | Beschreibung |
---|---|
AddActiveXControl(ControlType, int, int, int, int, int, int) | Erstellt ein Activex-Steuerelement. |
AddArc(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Bogenform hinzu. |
AddAutoShape(AutoShapeType, int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine AutoForm hinzu. |
AddAutoShapeInChart(AutoShapeType, int, int, int, int) | Fügt dem Diagramm eine AutoForm hinzu. |
AddButton(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Schaltfläche hinzu. |
AddCheckBox(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Kontrollkästchen hinzu. |
AddComboBox(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine ComboBox hinzu. |
AddCopy(Shape, int, int, int, int) | Fügt dem Arbeitsblatt eine Form hinzu und kopiert sie. |
AddFreeFloatingShape(MsoDrawingType, int, int, int, int, byte[], bool) | Fügt dem Arbeitsblatt eine frei schwebende Form hinzu. Gilt nur für Linien-/Bildform. |
AddGroupBox(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine GroupBox hinzu. |
AddIcons(int, int, int, int, int, int, byte[], byte[]) | Fügt SVG-Bild hinzu. |
AddLabel(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Label hinzu. |
AddLabelInChart(int, int, int, int) | Fügt dem Diagramm eine Beschriftung hinzu. |
AddLine(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Linienform hinzu. |
AddLinkedPicture(int, int, int, int, string) | Füge ein verlinktes Bild hinzu. |
AddListBox(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine ListBox hinzu. |
AddOleObject(int, int, int, int, int, int, byte[]) | |
AddOleObjectWithLinkedImage(int, int, int, int, string) | Füge ein verlinktes Bild hinzu. |
AddOval(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Oval hinzu. |
AddPicture(int, int, int, int, Stream) | Fügt der Sammlung ein Bild hinzu. |
AddPicture(int, int, Stream, int, int) | Fügt der Sammlung ein Bild hinzu. |
AddPictureInChart(int, int, Stream, int, int) | Fügt ein Bild zum Diagramm hinzu. |
AddRadioButton(int, int, int, int, int, int) | Fügt dem Arbeitsblatt einen RadioButton hinzu. |
AddRectangle(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine RectangleShape hinzu. |
AddScrollBar(int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Bildlaufleiste hinzu. |
AddShape(MsoDrawingType, int, int, int, int, int, int) | Fügt dem Arbeitsblatt eine Form hinzu. |
AddShapeInChart(MsoDrawingType, PlacementType, int, int, int, int) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
AddShapeInChart(MsoDrawingType, PlacementType, int, int, int, int, byte[]) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind Prozentskalen des Diagrammbereichs. |
AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double, byte[]) | Fügen Sie dem Diagramm eine Form hinzu. Alle Einheiten sind 1/4000 der Diagrammfläche. |
AddSpinner(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Kreisel hinzu. |
AddSvg(int, int, int, int, int, int, byte[], byte[]) | Fügt SVG-Bild hinzu. |
AddTextBox(int, int, int, int, int, int) | Fügt dem Arbeitsblatt ein Textfeld hinzu. |
AddTextBoxInChart(int, int, int, int) | Fügt dem Diagramm ein Textfeld hinzu. |
AddTextEffect(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int, int, int) | Fügt ein WordArt-Objekt ein. |
AddTextEffectInChart(MsoPresetTextEffect, string, string, int, bool, bool, int, int, int, int) | Fügt ein WordArt-Objekt in das Diagramm ein |
AddWordArt(PresetWordArtStyle, string, int, int, int, int, int, int) | Fügt voreingestelltes WordArt seit Excel 2007 hinzu.s |
BinarySearch(Shape) | |
BinarySearch(Shape, IComparer<Shape>) | |
BinarySearch(int, int, Shape, IComparer<Shape>) | |
Clear() | Alle Formen löschen. (2 methods) |
Contains(Shape) | |
CopyCommentsInRange(ShapeCollection, CellArea, int, int) | Alle Kommentare im Bereich kopieren. |
CopyInRange(ShapeCollection, CellArea, int, int, bool) | Shapes im Bereich in den Zielbereich kopieren. |
CopyTo(Shape[]) | |
CopyTo(Shape[], int) | |
CopyTo(int, Shape[], int, int) | |
DeleteInRange(CellArea) | Formen im Bereich löschen. Formkommentare werden nicht gelöscht. |
DeleteShape(Shape) | Eine Form löschen. Wenn sich die Form in der Gruppe befindet oder eine Kommentarform ist, wird sie nicht gelöscht. |
Exists(Predicate<Shape>) | |
Find(Predicate<Shape>) | |
FindAll(Predicate<Shape>) | |
FindIndex(Predicate<Shape>) | |
FindIndex(int, Predicate<Shape>) | |
FindIndex(int, int, Predicate<Shape>) | |
FindLast(Predicate<Shape>) | |
FindLastIndex(Predicate<Shape>) | |
FindLastIndex(int, Predicate<Shape>) | |
FindLastIndex(int, int, Predicate<Shape>) | |
GetEnumerator() | |
Group(Shape[]) | Gruppieren Sie die Formen. |
IndexOf(Shape) | |
IndexOf(Shape, int) | |
IndexOf(Shape, int, int) | |
LastIndexOf(Shape) | |
LastIndexOf(Shape, int) | |
LastIndexOf(Shape, int, int) | |
Remove(Shape) | Entfernen Sie die Form. |
RemoveAt(int) | Entfernen Sie die Form. (2 methods) |
Ungroup(GroupShape) | Hebt die Gruppierung der Formelemente auf. |
UpdateSelectedValue() | Aktualisiert den ausgewählten Wert um den Wert der verknüpften Zelle der Formen. |
Beispiele
[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<T>
- class Shape
- namensraum Aspose.Cells.Drawing
- Montage Aspose.Cells