Portion
Contents
[
Hide
]Portion(Presentation, ForEachPortionCallback)
Iterate each Portion in the Presentation. Portions will be iterated in all type of slides - Slide, MasterSlide and LayoutSlide
public static void Portion(Presentation pres, ForEachPortionCallback forEachPortion)
| Parameter | Type | Description |
|---|---|---|
| pres | Presentation | Presentation to iterate portions |
| forEachPortion | ForEachPortionCallback | Callback that will be invoked for each portion |
Examples
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Portion(pres, (portion, para, slide, index) =>
{
System.Console.WriteLine($"{portion.Text}, index: {index}");
});
}
See Also
- class Presentation
- delegate ForEachPortionCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
Portion(Presentation, bool, ForEachPortionCallback)
Iterate each Portion in the Presentation. Portions will be iterated in all type of slides - Slide, MasterSlide, LayoutSlide and NotesSlide
public static void Portion(Presentation pres, bool includeNotes,
ForEachPortionCallback forEachPortion)
| Parameter | Type | Description |
|---|---|---|
| pres | Presentation | Presentation to iterate portions |
| includeNotes | Boolean | Flag that indicates whether NotesSlides should be included in processing. |
| forEachPortion | ForEachPortionCallback | Callback that will be invoked for each portion |
Examples
using (Presentation pres = new Presentation("pres.pptx"))
{
ForEach.Portion(pres, true, (portion, para, slide, index) =>
{
System.Console.WriteLine($"{portion.Text}, index: {index}");
});
}
See Also
- class Presentation
- delegate ForEachPortionCallback
- class ForEach
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides