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
Name | Description |
---|---|
ForEach() |
Returns: ForEach
layoutSlide
Name | Description |
---|---|
layoutSlide (Presentation, ForEach.ForEachLayoutSlideCallback) | Iterate each #layoutSlide(Presentation,ForEachLayoutSlideCallback) in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate layout slides |
forEachLayoutSlide | ForEach.ForEachLayoutSlideCallback | Callback that will be invoked for each layout slide |
masterSlide
Name | Description |
---|---|
masterSlide (Presentation, ForEach.ForEachMasterSlideCallback) | Iterate each #masterSlide(Presentation,ForEachMasterSlideCallback) in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate master slides |
forEachMasterSlide | ForEach.ForEachMasterSlideCallback | Callback that will be invoked for each master slide |
paragraph
Name | Description |
---|---|
paragraph (Presentation, ForEach.ForEachParagraphCallback) | Iterate each Paragraph in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate paragraphs |
forEachParagraph | ForEach.ForEachParagraphCallback | Callback 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
Name | Description |
---|---|
paragraph (Presentation, boolean, ForEach.ForEachParagraphCallback) | Iterate each Paragraph in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate paragraphs |
includeNotes | boolean | Flag that indicates whether NotesSlides should be included in processing. |
forEachParagraph | ForEach.ForEachParagraphCallback | Callback 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
Name | Description |
---|---|
portion (Presentation, ForEach.ForEachPortionCallback) | Iterate each Portion in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate portions |
forEachPortion | ForEach.ForEachPortionCallback | Callback 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
Name | Description |
---|---|
portion (Presentation, boolean, ForEach.ForEachPortionCallback) | Iterate each Portion in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate portions |
includeNotes | boolean | Flag that indicates whether NotesSlides should be included in processing. |
forEachPortion | ForEach.ForEachPortionCallback | Callback 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
Name | Description |
---|---|
shape (Presentation, ForEach.ForEachShapeCallback) | Iterate each Shape in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate layout shapes |
forEachShape | ForEach.ForEachShapeCallback | Callback 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
Name | Description |
---|---|
shape (Presentation, boolean, ForEach.ForEachShapeCallback) | Iterate each Shape in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate layout shapes |
includeNotes | boolean | Flag that indicates whether NotesSlides should be included in processing. |
forEachShape | ForEach.ForEachShapeCallback | Callback 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
Name | Description |
---|---|
shape (BaseSlide, ForEach.ForEachShapeCallback) | Iterate each Shape in the BaseSlide. |
Parameters:
Name | Type | Description |
---|---|---|
baseSlide | BaseSlide | Slide to iterate layout shapes |
forEachShape | ForEach.ForEachShapeCallback | Callback that will be invoked for each shape BaseSlide is the base type for #slide(Presentation,ForEachSlideCallback), #masterSlide(Presentation,ForEachMasterSlideCallback) and #layoutSlide(Presentation,ForEachLayoutSlideCallback) |
slide
Name | Description |
---|---|
slide (Presentation, ForEach.ForEachSlideCallback) | Iterate each #slide(Presentation,ForEachSlideCallback) in the Presentation. |
Parameters:
Name | Type | Description |
---|---|---|
pres | Presentation | Presentation to iterate slides |
forEachSlide | ForEach.ForEachSlideCallback | Callback that will be invoked for each slide |