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