PowerPointSlideFluent
OfficeIMO.PowerPoint
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
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
- The instance.
- color OfficeIMO.OfficeColor
- 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
- The instance.
- value OfficeIMO.OfficeColor?
- 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
- The instance.
- startColor OfficeIMO.OfficeColor
- The value.
- endColor OfficeIMO.OfficeColor
- The value.
- angleDegrees double = 135
- The value.
Returns
TSelf The same instance.public static TSelf BackgroundImage<TSelf>(TSelf powerPointSlide, string imagePath) #Sets a background image for the slide.
Type Parameters
- TSelf
Parameters
- powerPointSlide TSelf
- The instance.
- imagePath string
- 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
- The instance.
- image System.IO.Stream
- Stream containing the image data.
- imageType OfficeIMO.Drawing.OfficeImageFormat
- 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
- The instance.
Returns
TSelf The same instance.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
- The instance.
- shape OfficeIMO.PowerPoint.PowerPointShape
- The value.
- audioPath string
- The value.
- stopExistingSounds bool = false
- 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
- The instance.
- shape OfficeIMO.PowerPoint.PowerPointShape
- The value.
- audio System.IO.Stream
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- The value.
- stopExistingSounds bool = false
- 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
- The instance.
- shape OfficeIMO.PowerPoint.PowerPointShape
- The value.
- value bool
- The value.
Returns
TSelf The same instance.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
- The instance.
- masterIndex int
- The value.
- layoutIndex int
- 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
- The instance.
- layout OfficeIMO.PowerPoint.PowerPointSlideLayout
- 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
- The instance.
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType
- The value.
- masterIndex int = 0
- 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
- The instance.
- layoutName string
- The value.
- masterIndex int = 0
- The value.
- ignoreCase bool = true
- 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
- The instance.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideLayout>
- 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
- The instance.
- value string?
- 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
- The instance.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointNotes>
- 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
- The instance.
- value double?
- 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
- The instance.
- value bool? = true
- 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
- The instance.
- value double?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
powerPointSlide.TransitionDurationSeconds = value; powerPointSlide.TransitionDurationSeconds(value);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
- The instance.
- audioPath string
- The value.
- loop bool = false
- 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
- The instance.
- audio System.IO.Stream
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- The value.
- loop bool = false
- 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
- The instance.
- value OfficeIMO.PowerPoint.PowerPointSlideTransitionSpeed?
- 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
- The instance.
- value OfficeIMO.PowerPoint.PowerPointSlideTransition
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
powerPointSlide.Transition = value; powerPointSlide.Transition(value);