ForEach

ForEach class

Represents a group of methods intended to iterate over different Presentation model objects. These methods can be useful if you need to iterate and change some Presentation’ elements formatting or content, e.g. change each portion formatting.

ForEach

NameDescription
ForEach()

Returns: ForEach


layoutSlide

NameDescription
layoutSlide (Presentation, ForEach.ForEachLayoutSlideCallback)Iterate each #layoutSlide(Presentation,ForEachLayoutSlideCallback) in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate layout slides
forEachLayoutSlideForEach.ForEachLayoutSlideCallbackCallback that will be invoked for each layout slide

masterSlide

NameDescription
masterSlide (Presentation, ForEach.ForEachMasterSlideCallback)Iterate each #masterSlide(Presentation,ForEachMasterSlideCallback) in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate master slides
forEachMasterSlideForEach.ForEachMasterSlideCallbackCallback that will be invoked for each master slide

paragraph

NameDescription
paragraph (Presentation, ForEach.ForEachParagraphCallback)Iterate each Paragraph in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate paragraphs
forEachParagraphForEach.ForEachParagraphCallbackCallback that will be invoked for each paragraph Shapes will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback) and #layoutSlide(Presentation,ForEachLayoutSlideCallback)

paragraph

NameDescription
paragraph (Presentation, boolean, ForEach.ForEachParagraphCallback)Iterate each Paragraph in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate paragraphs
includeNotesbooleanFlag that indicates whether NotesSlides should be included in processing.
forEachParagraphForEach.ForEachParagraphCallbackCallback that will be invoked for each paragraph Shapes will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback), #layoutSlide(Presentation,ForEachLayoutSlideCallback) and NotesSlide

portion

NameDescription
portion (Presentation, ForEach.ForEachPortionCallback)Iterate each Portion in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate portions
forEachPortionForEach.ForEachPortionCallbackCallback that will be invoked for each portion Portions will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback) and #layoutSlide(Presentation,ForEachLayoutSlideCallback)

portion

NameDescription
portion (Presentation, boolean, ForEach.ForEachPortionCallback)Iterate each Portion in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate portions
includeNotesbooleanFlag that indicates whether NotesSlides should be included in processing.
forEachPortionForEach.ForEachPortionCallbackCallback that will be invoked for each portion Portions will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback), #layoutSlide(Presentation,ForEachLayoutSlideCallback) and NotesSlide

shape

NameDescription
shape (Presentation, ForEach.ForEachShapeCallback)Iterate each Shape in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate layout shapes
forEachShapeForEach.ForEachShapeCallbackCallback that will be invoked for each shape Shapes will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback) and #layoutSlide(Presentation,ForEachLayoutSlideCallback)

shape

NameDescription
shape (Presentation, boolean, ForEach.ForEachShapeCallback)Iterate each Shape in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate layout shapes
includeNotesbooleanFlag that indicates whether NotesSlides should be included in processing.
forEachShapeForEach.ForEachShapeCallbackCallback that will be invoked for each shape Shapes will be iterated in all type of slides - #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback), #layoutSlide(Presentation,ForEachLayoutSlideCallback) and NotesSlide if needed.

shape

NameDescription
shape (BaseSlide, ForEach.ForEachShapeCallback)Iterate each Shape in the BaseSlide.

Parameters:

NameTypeDescription
baseSlideBaseSlideSlide to iterate layout shapes
forEachShapeForEach.ForEachShapeCallbackCallback that will be invoked for each shape BaseSlide is the base type for #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback) and #layoutSlide(Presentation,ForEachLayoutSlideCallback)

slide

NameDescription
slide (Presentation, ForEach.ForEachSlideCallback)Iterate each #slide(Presentation,ForEachSlideCallback) in the Presentation.

Parameters:

NameTypeDescription
presPresentationPresentation to iterate slides
forEachSlideForEach.ForEachSlideCallbackCallback that will be invoked for each slide