Paragraph

ForEach.Paragraph method

Iterate each Paragraph in the Presentation. Shapes will be iterated in all type of slides - Slide, MasterSlide and LayoutSlide

public static void Paragraph(Presentation pres, ForEachParagraphCallback forEachParagraph)
Parameter Type Description
pres Presentation Presentation to iterate paragraphs
forEachParagraph ForEachParagraphCallback Callback that will be invoked for each paragraph

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    ForEach.Paragraph(pres, (para, slide, index) =>
    {
        System.Console.WriteLine($"{para.Text}, index: {index}");
    });
}        

See Also