Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointSlideFluent

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Modifiers
static

The fluent methods of 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

Methods

BackgroundColor``1 2 overloads
public static TSelf BackgroundColor<TSelf>(TSelf powerPointSlide, OfficeColor color) #

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) #

Sets PowerPointSlide.BackgroundColor: 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

// 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) #

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) #

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) #

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) #

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) #

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) #

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) #

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) #

Sets PowerPointSlide.Hidden: 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

// 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) #

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) #

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) #

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) #

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) #

Configures PowerPointSlide.Layout 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) #

Sets PowerPointSlide.Name: 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

// C# initializer or property    // C# fluent
powerPointSlide.Name = value;    powerPointSlide.Name(value);
public static TSelf Notes<TSelf>(TSelf powerPointSlide, Action<PowerPointNotes> configure) #

Configures PowerPointSlide.Notes 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) #

Sets PowerPointSlide.TransitionAdvanceAfterSeconds: 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

// C# initializer or property                             // C# fluent
powerPointSlide.TransitionAdvanceAfterSeconds = value;    powerPointSlide.TransitionAdvanceAfterSeconds(value);
public static TSelf TransitionAdvanceOnClick<TSelf>(TSelf powerPointSlide, bool? value = true) #

Sets PowerPointSlide.TransitionAdvanceOnClick: 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

// C# initializer or property                        // C# fluent
powerPointSlide.TransitionAdvanceOnClick = value;    powerPointSlide.TransitionAdvanceOnClick(value);
public static TSelf TransitionDurationSeconds<TSelf>(TSelf powerPointSlide, double? value) #

Sets PowerPointSlide.TransitionDurationSeconds: 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

// 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) #

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) #

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) #

Sets PowerPointSlide.TransitionSpeed: 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

// C# initializer or property               // C# fluent
powerPointSlide.TransitionSpeed = value;    powerPointSlide.TransitionSpeed(value);
public static TSelf Transition<TSelf>(TSelf powerPointSlide, PowerPointSlideTransition value) #

Sets PowerPointSlide.Transition: 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

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