# PowerPointSlideFluent

The fluent methods of PowerPointSlide, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

static

The fluent methods of [PowerPointSlide](/api/powerpoint/officeimo-powerpoint-powerpointslide/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PowerPointSlideFluent

Filter members 

Show inherited

## Methods

BackgroundColor``1 2 overloads

`public static TSelf BackgroundColor<TSelf>(TSelf powerPointSlide, OfficeColor color)` [#](#method-backgroundcolor-officeimo-officecolor)

Sets a solid background, preserving native theme references and literal transparency.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundColor<TSelf>(TSelf powerPointSlide, OfficeColor? value)` [#](#method-backgroundcolor-nullable-officeimo-officecolor)

Sets [PowerPointSlide.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets the local solid background color, retaining native theme slots and opacity.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointSlide.BackgroundColor = value;    powerPointSlide.BackgroundColor(value);
```

`public static TSelf BackgroundGradient<TSelf>(TSelf powerPointSlide, OfficeColor startColor, OfficeColor endColor, double angleDegrees = 135)` [#](#method-backgroundgradient-officeimo-officecolor-officeimo-officecolor-double)

Sets a linear gradient background, retaining theme roles and color opacity.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**startColor OfficeIMO.OfficeColor required**

The value.

**endColor OfficeIMO.OfficeColor required**

The value.

**angleDegrees double = 135 optional**

The value.

Returns

`TSelf` The same instance.

BackgroundImage``1 2 overloads

`public static TSelf BackgroundImage<TSelf>(TSelf powerPointSlide, string imagePath)` [#](#method-backgroundimage-string)

Sets a background image for the slide.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**imagePath string required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundImage<TSelf>(TSelf powerPointSlide, Stream image, OfficeImageFormat imageType)` [#](#method-backgroundimage-io-stream-officeimo-drawing-officeimageformat)

Sets a background image for the slide from a readable image stream.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**image System.IO.Stream required**

Stream containing the image data.

**imageType OfficeIMO.Drawing.OfficeImageFormat required**

Image format of the stream.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundNoFill<TSelf>(TSelf powerPointSlide)` [#](#method-backgroundnofill)

Sets an explicit no-fill slide background, overriding inherited theme fills.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

Returns

`TSelf` The same instance.

ClassicAnimationSound``1 2 overloads

`public static TSelf ClassicAnimationSound<TSelf>(TSelf powerPointSlide, PowerPointShape shape, string audioPath, bool stopExistingSounds = false)` [#](#method-classicanimationsound-officeimo-powerpoint-powerpointshape-string-boolean)

Sets the embedded WAV or AIFF sound played with a shape's classic animation.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**shape OfficeIMO.PowerPoint.PowerPointShape required**

The value.

**audioPath string required**

The value.

**stopExistingSounds bool = false optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf ClassicAnimationSound<TSelf>(TSelf powerPointSlide, PowerPointShape shape, Stream audio, string name, string contentType = "audio/wav", string extension = ".wav", bool stopExistingSounds = false)` [#](#method-classicanimationsound-officeimo-powerpoint-powerpointshape-io-stream-string-string-string-boolean)

Sets the embedded WAV or AIFF sound played with a shape's classic animation.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**shape OfficeIMO.PowerPoint.PowerPointShape required**

The value.

**audio System.IO.Stream required**

The value.

**name string required**

The value.

**contentType string = "audio/wav" optional**

The value.

**extension string = ".wav" optional**

The value.

**stopExistingSounds bool = false optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf ClassicAnimationStopsSound<TSelf>(TSelf powerPointSlide, PowerPointShape shape, bool value)` [#](#method-classicanimationstopssound-officeimo-powerpoint-powerpointshape-boolean)

Controls whether existing sounds stop when a shape's classic animation starts.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**shape OfficeIMO.PowerPoint.PowerPointShape required**

The value.

**value bool required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Hidden<TSelf>(TSelf powerPointSlide, bool value = true)` [#](#method-hidden-boolean)

Sets [PowerPointSlide.Hidden](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets whether the slide is hidden in slide show mode.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
powerPointSlide.Hidden = value;    powerPointSlide.Hidden(value);
```

Layout``1 5 overloads

`public static TSelf Layout<TSelf>(TSelf powerPointSlide, int masterIndex, int layoutIndex)` [#](#method-layout-int32-int32)

Sets the slide layout using master and layout indexes.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**masterIndex int required**

The value.

**layoutIndex int required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Layout<TSelf>(TSelf powerPointSlide, PowerPointSlideLayout layout)` [#](#method-layout-officeimo-powerpoint-powerpointslidelayout)

Moves the slide to another layout of the same presentation. Slide content is kept; placeholders are matched to the new layout's by type and index.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**layout OfficeIMO.PowerPoint.PowerPointSlideLayout required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Layout<TSelf>(TSelf powerPointSlide, PowerPointSlideLayoutType layoutType, int masterIndex = 0)` [#](#method-layout-officeimo-powerpoint-powerpointslidelayouttype-int32)

Sets the slide layout using a layout type.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType required**

The value.

**masterIndex int = 0 optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Layout<TSelf>(TSelf powerPointSlide, string layoutName, int masterIndex = 0, bool ignoreCase = true)` [#](#method-layout-string-int32-boolean)

Sets the slide layout using a layout name.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**layoutName string required**

The value.

**masterIndex int = 0 optional**

The value.

**ignoreCase bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Layout<TSelf>(TSelf powerPointSlide, Action<PowerPointSlideLayout> configure)` [#](#method-layout-action-officeimo-powerpoint-powerpointslidelayout)

Configures [PowerPointSlide.Layout](/api/powerpoint/officeimo-powerpoint-powerpointslide/) in place: The layout this slide uses, or null when the slide has no layout.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideLayout> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Name<TSelf>(TSelf powerPointSlide, string? value)` [#](#method-name-string)

Sets [PowerPointSlide.Name](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets the authored slide name stored in common slide data.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
powerPointSlide.Name = value;    powerPointSlide.Name(value);
```

`public static TSelf Notes<TSelf>(TSelf powerPointSlide, Action<PowerPointNotes> configure)` [#](#method-notes-action-officeimo-powerpoint-powerpointnotes)

Configures [PowerPointSlide.Notes](/api/powerpoint/officeimo-powerpoint-powerpointslide/) in place: Notes associated with the slide.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**configure System.Action<OfficeIMO.PowerPoint.PowerPointNotes> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf TransitionAdvanceAfterSeconds<TSelf>(TSelf powerPointSlide, double? value)` [#](#method-transitionadvanceafterseconds-nullable-system-double)

Sets [PowerPointSlide.TransitionAdvanceAfterSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets the optional automatic-advance time in seconds.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                             // C# fluent
powerPointSlide.TransitionAdvanceAfterSeconds = value;    powerPointSlide.TransitionAdvanceAfterSeconds(value);
```

`public static TSelf TransitionAdvanceOnClick<TSelf>(TSelf powerPointSlide, bool? value = true)` [#](#method-transitionadvanceonclick-nullable-system-boolean)

Sets [PowerPointSlide.TransitionAdvanceOnClick](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets whether clicking advances the slide.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                        // C# fluent
powerPointSlide.TransitionAdvanceOnClick = value;    powerPointSlide.TransitionAdvanceOnClick(value);
```

`public static TSelf TransitionDurationSeconds<TSelf>(TSelf powerPointSlide, double? value)` [#](#method-transitiondurationseconds-nullable-system-double)

Sets [PowerPointSlide.TransitionDurationSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets the optional transition duration in seconds.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                         // C# fluent
powerPointSlide.TransitionDurationSeconds = value;    powerPointSlide.TransitionDurationSeconds(value);
```

TransitionSound``1 2 overloads

`public static TSelf TransitionSound<TSelf>(TSelf powerPointSlide, string audioPath, bool loop = false)` [#](#method-transitionsound-string-boolean)

Sets an embedded WAV or AIFF transition sound from a file.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**audioPath string required**

The value.

**loop bool = false optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf TransitionSound<TSelf>(TSelf powerPointSlide, Stream audio, string name, string contentType = "audio/wav", string extension = ".wav", bool loop = false)` [#](#method-transitionsound-io-stream-string-string-string-boolean)

Sets an embedded WAV or AIFF transition sound.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**audio System.IO.Stream required**

The value.

**name string required**

The value.

**contentType string = "audio/wav" optional**

The value.

**extension string = ".wav" optional**

The value.

**loop bool = false optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf TransitionSpeed<TSelf>(TSelf powerPointSlide, PowerPointSlideTransitionSpeed? value)` [#](#method-transitionspeed-nullable-officeimo-powerpoint-powerpointslidetransitionspeed)

Sets [PowerPointSlide.TransitionSpeed](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Gets or sets the optional transition playback speed.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointSlideTransitionSpeed? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointSlide.TransitionSpeed = value;    powerPointSlide.TransitionSpeed(value);
```

`public static TSelf Transition<TSelf>(TSelf powerPointSlide, PowerPointSlideTransition value)` [#](#method-transition-officeimo-powerpoint-powerpointslidetransition)

Sets [PowerPointSlide.Transition](/api/powerpoint/officeimo-powerpoint-powerpointslide/): Transition applied when moving to this slide.

Type Parameters

**TSelf**

Parameters

**powerPointSlide TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointSlideTransition required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
powerPointSlide.Transition = value;    powerPointSlide.Transition(value);
```

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:955C259F84C743E5C8E2B795A46D8FFB68221F17B2612929868428AB51796DE1 -->
