API Reference
Class
PowerPointFluentPresentation
Provides a fluent API wrapper around PowerPointPresentation.
Inheritance
- Object
- PowerPointFluentPresentation
Constructors
public PowerPointFluentPresentation(PowerPointPresentation presentation) #Initializes a new instance of the PowerPointFluentPresentation class.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- Presentation to wrap.
Methods
DuplicateSlide 2 overloads
public PowerPointSlideBuilder DuplicateSlide(Int32 index, Nullable<Int32> insertAt = null) #Returns:
PowerPointSlideBuilderDuplicates a slide and returns a builder for the new slide.
Parameters
- index System.Int32
- Index of the slide to duplicate.
- insertAt System.Nullable{System.Int32} = null
- Index where the duplicate should be inserted. Defaults to index + 1.
public PowerPointFluentPresentation DuplicateSlide(Int32 index, Nullable<Int32> insertAt, Action<PowerPointSlideBuilder> configure) #Returns:
PowerPointFluentPresentationDuplicates a slide and applies configuration.
Parameters
- index System.Int32
- Index of the slide to duplicate.
- insertAt System.Nullable{System.Int32}
- Index where the duplicate should be inserted.
- configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder}
- Action used to configure the duplicated slide.
public PowerPointPresentation End() #Returns:
PowerPointPresentationCompletes fluent configuration and returns the underlying presentation.
ImportSlide 2 overloads
public PowerPointSlideBuilder ImportSlide(PowerPointPresentation sourcePresentation, Int32 sourceIndex, Nullable<Int32> insertAt = null) #Returns:
PowerPointSlideBuilderImports a slide from another presentation and returns a builder for the new slide.
Parameters
- sourcePresentation OfficeIMO.PowerPoint.PowerPointPresentation
- Presentation to import from.
- sourceIndex System.Int32
- Index of the slide to import.
- insertAt System.Nullable{System.Int32} = null
- Index where the imported slide should be inserted. Defaults to end.
public PowerPointFluentPresentation ImportSlide(PowerPointPresentation sourcePresentation, Int32 sourceIndex, Nullable<Int32> insertAt, Action<PowerPointSlideBuilder> configure) #Returns:
PowerPointFluentPresentationImports a slide from another presentation and applies configuration.
Parameters
- sourcePresentation OfficeIMO.PowerPoint.PowerPointPresentation
- Presentation to import from.
- sourceIndex System.Int32
- Index of the slide to import.
- insertAt System.Nullable{System.Int32}
- Index where the imported slide should be inserted.
- configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder}
- Action used to configure the imported slide.
Slide 3 overloads
public PowerPointSlideBuilder Slide(Int32 masterIndex = 0, Int32 layoutIndex = 0) #Returns:
PowerPointSlideBuilderAdds and returns a builder for a new slide.
Parameters
- masterIndex System.Int32 = 0
- Index of the slide master.
- layoutIndex System.Int32 = 0
- Index of the slide layout.
public PowerPointFluentPresentation Slide(Int32 masterIndex, Int32 layoutIndex, Action<PowerPointSlideBuilder> configure) #Returns:
PowerPointFluentPresentationAdds and optionally configures a new slide to the presentation.
Parameters
- masterIndex System.Int32
- Index of the slide master.
- layoutIndex System.Int32
- Index of the slide layout.
- configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder}
- Action used to configure the slide.
public PowerPointFluentPresentation Slide(Action<PowerPointSlideBuilder> configure) #Returns:
PowerPointFluentPresentationAdds and configures a new slide using a builder action with default master and layout indexes.
Parameters
- configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder}
- Action used to configure the slide.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object