Shape
Inhalt
[
Ausblenden
]Shape(Presentation, ForEachShapeCallback)
Iteriere jede Shape
in der Presentation
. Shapes werden in allen Arten von Folien iteriert - Slide
, MasterSlide
und LayoutSlide
public static void Shape(Presentation pres, ForEachShapeCallback forEachShape)
Parameter | Typ | Beschreibung |
---|---|---|
pres | Presentation | Präsentation, um Layout-Shape zu iterieren |
forEachShape | ForEachShapeCallback | Callback, der für jede Shape aufgerufen wird |
Beispiele
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Shape(pres, (shape, slide, index) =>
{
System.Console.WriteLine($"{shape.Name}, index: {index}");
});
}
Siehe auch
- Klasse Presentation
- Delegat ForEachShapeCallback
- Klasse ForEach
- Namensraum Aspose.Slides.LowCode
- Assembly Aspose.Slides
Shape(Presentation, bool, ForEachShapeCallback)
Iteriere jede Shape
in der Presentation
. Shapes werden in allen Arten von Folien iteriert - Slide
, MasterSlide
, LayoutSlide
und NotesSlide
, wenn erforderlich.
public static void Shape(Presentation pres, bool includeNotes, ForEachShapeCallback forEachShape)
Parameter | Typ | Beschreibung |
---|---|---|
pres | Presentation | Präsentation, um Layout-Shape zu iterieren |
includeNotes | Boolean | Flag, das angibt, ob NotesSlides in die Verarbeitung einbezogen werden sollen. |
forEachShape | ForEachShapeCallback | Callback, der für jede Shape aufgerufen wird |
Beispiele
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Shape(pres, true, (shape, slide, index) =>
{
System.Console.WriteLine($"{shape.Name}, index: {index}");
});
}
Siehe auch
- Klasse Presentation
- Delegat ForEachShapeCallback
- Klasse ForEach
- Namensraum Aspose.Slides.LowCode
- Assembly Aspose.Slides
Shape(BaseSlide, ForEachShapeCallback)
Iteriere jede Shape
in der BaseSlide
. BaseSlide
ist der Basistyp für Slide
, MasterSlide
und LayoutSlide
public static void Shape(BaseSlide baseSlide, ForEachShapeCallback forEachShape)
Parameter | Typ | Beschreibung |
---|---|---|
baseSlide | BaseSlide | Folie, um Layout-Shape zu iterieren |
forEachShape | ForEachShapeCallback | Callback, der für jede Shape aufgerufen wird |
Beispiele
(Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Slide(pres, (slide, index) =>
{
ForEach.Shape(slide, (shape, baseSlide, shapeIndex) =>
{
System.Console.WriteLine($"{shape.Name}, index: {shapeIndex}");
});
});
}
Siehe auch
- Klasse BaseSlide
- Delegat ForEachShapeCallback
- Klasse ForEach
- Namensraum Aspose.Slides.LowCode
- Assembly Aspose.Slides