Portion
Inhalt
[
Ausblenden
]Portion(Presentation, ForEachPortionCallback)
Iteriere jede Portion
in der Presentation
. Portionen werden in allen Arten von Folien iteriert - Slide
, MasterSlide
und LayoutSlide
public static void Portion(Presentation pres, ForEachPortionCallback forEachPortion)
Parameter | Typ | Beschreibung |
---|---|---|
pres | Presentation | Präsentation, um Portionen zu iterieren |
forEachPortion | ForEachPortionCallback | Callback, der für jede Portion aufgerufen wird |
Beispiele
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Portion(pres, (portion, para, slide, index) =>
{
System.Console.WriteLine($"{portion.Text}, index: {index}");
});
}
Siehe auch
- class Presentation
- delegate ForEachPortionCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
Portion(Presentation, bool, ForEachPortionCallback)
Iteriere jede Portion
in der Presentation
. Portionen werden in allen Arten von Folien iteriert - Slide
, MasterSlide
, LayoutSlide
und NotesSlide
public static void Portion(Presentation pres, bool includeNotes,
ForEachPortionCallback forEachPortion)
Parameter | Typ | Beschreibung |
---|---|---|
pres | Presentation | Präsentation, um Portionen zu iterieren |
includeNotes | Boolean | Flag, das angibt, ob NotesSlides in die Verarbeitung einbezogen werden sollen. |
forEachPortion | ForEachPortionCallback | Callback, der für jede Portion aufgerufen wird |
Beispiele
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Portion(pres, true, (portion, para, slide, index) =>
{
System.Console.WriteLine($"{portion.Text}, index: {index}");
});
}
Siehe auch
- class Presentation
- delegate ForEachPortionCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides