OfficeIMO

API Reference

Class

PowerPointFluentPresentation

Namespace OfficeIMO.PowerPoint.Fluent
Assembly OfficeIMO.PowerPoint

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 requiredposition: 0
Presentation to wrap.

Methods

DuplicateSlide 2 overloads
public PowerPointSlideBuilder DuplicateSlide(Int32 index, Nullable<Int32> insertAt = null) #
Returns: PowerPointSlideBuilder

Duplicates a slide and returns a builder for the new slide.

Parameters

index System.Int32 requiredposition: 0
Index of the slide to duplicate.
insertAt System.Nullable{System.Int32} = null optionalposition: 1
Index where the duplicate should be inserted. Defaults to index + 1.
public PowerPointFluentPresentation DuplicateSlide(Int32 index, Nullable<Int32> insertAt, Action<PowerPointSlideBuilder> configure) #
Returns: PowerPointFluentPresentation

Duplicates a slide and applies configuration.

Parameters

index System.Int32 requiredposition: 0
Index of the slide to duplicate.
insertAt System.Nullable{System.Int32} requiredposition: 1
Index where the duplicate should be inserted.
configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder} requiredposition: 2
Action used to configure the duplicated slide.
public PowerPointPresentation End() #
Returns: PowerPointPresentation

Completes fluent configuration and returns the underlying presentation.

ImportSlide 2 overloads
public PowerPointSlideBuilder ImportSlide(PowerPointPresentation sourcePresentation, Int32 sourceIndex, Nullable<Int32> insertAt = null) #
Returns: PowerPointSlideBuilder

Imports a slide from another presentation and returns a builder for the new slide.

Parameters

sourcePresentation OfficeIMO.PowerPoint.PowerPointPresentation requiredposition: 0
Presentation to import from.
sourceIndex System.Int32 requiredposition: 1
Index of the slide to import.
insertAt System.Nullable{System.Int32} = null optionalposition: 2
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: PowerPointFluentPresentation

Imports a slide from another presentation and applies configuration.

Parameters

sourcePresentation OfficeIMO.PowerPoint.PowerPointPresentation requiredposition: 0
Presentation to import from.
sourceIndex System.Int32 requiredposition: 1
Index of the slide to import.
insertAt System.Nullable{System.Int32} requiredposition: 2
Index where the imported slide should be inserted.
configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder} requiredposition: 3
Action used to configure the imported slide.
Slide 3 overloads
public PowerPointSlideBuilder Slide(Int32 masterIndex = 0, Int32 layoutIndex = 0) #
Returns: PowerPointSlideBuilder

Adds and returns a builder for a new slide.

Parameters

masterIndex System.Int32 = 0 optionalposition: 0
Index of the slide master.
layoutIndex System.Int32 = 0 optionalposition: 1
Index of the slide layout.
public PowerPointFluentPresentation Slide(Int32 masterIndex, Int32 layoutIndex, Action<PowerPointSlideBuilder> configure) #
Returns: PowerPointFluentPresentation

Adds and optionally configures a new slide to the presentation.

Parameters

masterIndex System.Int32 requiredposition: 0
Index of the slide master.
layoutIndex System.Int32 requiredposition: 1
Index of the slide layout.
configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder} requiredposition: 2
Action used to configure the slide.
public PowerPointFluentPresentation Slide(Action<PowerPointSlideBuilder> configure) #
Returns: PowerPointFluentPresentation

Adds and configures a new slide using a builder action with default master and layout indexes.

Parameters

configure System.Action{OfficeIMO.PowerPoint.Fluent.PowerPointSlideBuilder} requiredposition: 0
Action used to configure the slide.