Paragraph
内容
[
隐藏
]Paragraph(Presentation, ForEachParagraphCallback)
遍历每个 Paragraph
在 Presentation
中。形状将在所有类型的幻灯片中遍历 - Slide
, MasterSlide
和 LayoutSlide
public static void Paragraph(Presentation pres, ForEachParagraphCallback forEachParagraph)
参数 | 类型 | 描述 |
---|---|---|
pres | Presentation | 要遍历段落的演示文稿 |
forEachParagraph | ForEachParagraphCallback | 将为每个段落调用的回调 |
示例
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Paragraph(pres, (para, slide, index) =>
{
System.Console.WriteLine($"{para.Text}, index: {index}");
});
}
另见
- class Presentation
- delegate ForEachParagraphCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
Paragraph(Presentation, bool, ForEachParagraphCallback)
遍历每个 Paragraph
在 Presentation
中。形状将在所有类型的幻灯片中遍历 - Slide
, MasterSlide
, LayoutSlide
和 NotesSlide
public static void Paragraph(Presentation pres, bool includeNotes,
ForEachParagraphCallback forEachParagraph)
参数 | 类型 | 描述 |
---|---|---|
pres | Presentation | 要遍历段落的演示文稿 |
includeNotes | Boolean | 指示是否应在处理过程中包含NotesSlides的标志。 |
forEachParagraph | ForEachParagraphCallback | 将为每个段落调用的回调 |
示例
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Paragraph(pres, true, (para, slide, index) =>
{
System.Console.WriteLine($"{para.Text}, index: {index}");
});
}
另见
- class Presentation
- delegate ForEachParagraphCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides