Portion

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)
ParameterTypBeschreibung
presPresentationPräsentation, um Portionen zu iterieren
forEachPortionForEachPortionCallbackCallback, 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


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)
ParameterTypBeschreibung
presPresentationPräsentation, um Portionen zu iterieren
includeNotesBooleanFlag, das angibt, ob NotesSlides in die Verarbeitung einbezogen werden sollen.
forEachPortionForEachPortionCallbackCallback, 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