Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointSlideScope

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed

Edits one PowerPointSlide: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • PowerPointSlideScope

Usage

Explore 27 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

BackgroundColor 2 overloads
public PowerPointSlideScope BackgroundColor(OfficeColor color) #

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

Parameters

color OfficeIMO.OfficeColor required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope BackgroundColor(OfficeColor? value) #

Sets PowerPointSlide.BackgroundColor: Gets or sets the local solid background color, retaining native theme slots and opacity.

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope BackgroundGradient(OfficeColor startColor, OfficeColor endColor, double angleDegrees = 135) #

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

Parameters

startColor OfficeIMO.OfficeColor required
The value.
endColor OfficeIMO.OfficeColor required
The value.
angleDegrees double = 135 optional
The value.

Returns

PowerPointSlideScope The same scope.
BackgroundImage 2 overloads
public PowerPointSlideScope BackgroundImage(string imagePath) #

Sets a background image for the slide.

Parameters

imagePath string required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope BackgroundImage(Stream image, OfficeImageFormat imageType) #

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

Parameters

image System.IO.Stream required
Stream containing the image data.
imageType OfficeIMO.Drawing.OfficeImageFormat required
Image format of the stream.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope BackgroundNoFill() #

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

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Chart(OfficeChartType chartKind, OfficeChartData data, OfficeChartOptions? options = null, Action<PowerPointChartScope>? configure = null) #

Adds a native chart from the shared OfficeIMO chart contract. Supports all shared chart kinds, per-series combo kinds, and primary or secondary value axes where the selected families are compatible.

Parameters

chartKind OfficeIMO.OfficeChartType required
The value.
data OfficeIMO.Drawing.OfficeChartData required
The value.
options OfficeIMO.OfficeChartOptions? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointChartScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
ClassicAnimationSound 2 overloads
public PowerPointSlideScope ClassicAnimationSound(PowerPointShape shape, string audioPath, bool stopExistingSounds = false) #

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

Parameters

shape OfficeIMO.PowerPoint.PowerPointShape required
The value.
audioPath string required
The value.
stopExistingSounds bool = false optional
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope ClassicAnimationSound(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.

Parameters

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

PowerPointSlideScope The same scope.
public PowerPointSlideScope ClassicAnimationStopsSound(PowerPointShape shape, bool value) #

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

Parameters

shape OfficeIMO.PowerPoint.PowerPointShape required
The value.
value bool required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Ellipse(OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height, string? name = null, Action<PowerPointAutoShapeScope>? configure = null) #

Adds an ellipse shape.

Parameters

left OfficeIMO.OfficeLength required
The value.
top OfficeIMO.OfficeLength required
The value.
width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength required
The value.
name string? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Hidden(bool value = true) #

Sets PowerPointSlide.Hidden: Gets or sets whether the slide is hidden in slide show mode.

Parameters

value bool = true optional
The value; true when omitted.

Returns

PowerPointSlideScope The same scope.
Image 4 overloads
public PowerPointSlideScope Image(string imagePath, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointImageScope>? configure = null) #

Adds an image from the given file path.

Parameters

imagePath string required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Image(Stream image, OfficeImageFormat imageType, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointImageScope>? configure = null) #

Adds an image from the provided stream.

Parameters

image System.IO.Stream required
Stream containing the image data.
imageType OfficeIMO.Drawing.OfficeImageFormat required
Image format of the stream.
left OfficeIMO.OfficeLength? = null optional
Left position as a physical length.
top OfficeIMO.OfficeLength? = null optional
Top position as a physical length.
width OfficeIMO.OfficeLength? = null optional
Width as a physical length.
height OfficeIMO.OfficeLength? = null optional
Height as a physical length.
configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Image(string imagePath, PowerPointLayoutBox layout, Action<PowerPointImageScope>? configure = null) #

Adds an image using a layout box.

Parameters

imagePath string required
The value.
layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Image(Stream image, OfficeImageFormat imageType, PowerPointLayoutBox layout, Action<PowerPointImageScope>? configure = null) #

Adds an image from a stream using a layout box.

Parameters

image System.IO.Stream required
The value.
imageType OfficeIMO.Drawing.OfficeImageFormat required
The value.
layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
Layout 5 overloads
public PowerPointSlideScope Layout(int masterIndex, int layoutIndex) #

Sets the slide layout using master and layout indexes.

Parameters

masterIndex int required
The value.
layoutIndex int required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Layout(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.

Parameters

layout OfficeIMO.PowerPoint.PowerPointSlideLayout required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Layout(PowerPointSlideLayoutType layoutType, int masterIndex = 0) #

Sets the slide layout using a layout type.

Parameters

layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType required
The value.
masterIndex int = 0 optional
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Layout(string layoutName, int masterIndex = 0, bool ignoreCase = true) #

Sets the slide layout using a layout name.

Parameters

layoutName string required
The value.
masterIndex int = 0 optional
The value.
ignoreCase bool = true optional
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Layout(Action<PowerPointSlideLayout> configure) #

Configures PowerPointSlide.Layout in place: The layout this slide uses, or null when the slide has no layout.

Parameters

configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideLayout> required
Configures the value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Line(OfficeLength startX, OfficeLength startY, OfficeLength endX, OfficeLength endY, string? name = null, Action<PowerPointAutoShapeScope>? configure = null) #

Adds a line shape from the specified start and end points.

Parameters

startX OfficeIMO.OfficeLength required
The value.
startY OfficeIMO.OfficeLength required
The value.
endX OfficeIMO.OfficeLength required
The value.
endY OfficeIMO.OfficeLength required
The value.
name string? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Name(string? value) #

Sets PowerPointSlide.Name: Gets or sets the authored slide name stored in common slide data.

Parameters

value string? required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Notes(Action<PowerPointNotesScope> configure) #

Notes associated with the slide.

Parameters

configure System.Action<OfficeIMO.PowerPoint.PowerPointNotesScope> required
Configures it through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Rectangle(OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height, string? name = null, Action<PowerPointAutoShapeScope>? configure = null) #

Adds a rectangle shape.

Parameters

left OfficeIMO.OfficeLength required
The value.
top OfficeIMO.OfficeLength required
The value.
width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength required
The value.
name string? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Shape(OfficePresetShapeType shapeType, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, string? name = null, Action<PowerPointAutoShapeScope>? configure = null) #

Adds an auto shape with the specified geometry.

Parameters

shapeType OfficeIMO.Drawing.OfficePresetShapeType required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
name string? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
Table 5 overloads
public PowerPointSlideScope Table(Action<PowerPointTableBuilder> compose) #

Adds a table composed row by row, placed in the slide's content area.

Parameters

compose System.Action<OfficeIMO.PowerPoint.PowerPointTableBuilder> required
Sets the columns, header and rows.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Table(int rows, int columns, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointTableScope>? configure = null) #

Adds a table with the specified rows, columns and physical bounds. Omitted geometry uses the canonical content frame below the title.

Parameters

rows int required
The value.
columns int required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Table(int rows, int columns, PowerPointTableStylePreset preset, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointTableScope>? configure = null) #

Adds a table with a style preset applied.

Parameters

rows int required
The value.
columns int required
The value.
preset OfficeIMO.PowerPoint.PowerPointTableStylePreset required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Table(int rows, int columns, string styleName, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, bool ignoreCase = true, bool? firstRow = null, bool? lastRow = null, bool? firstColumn = null, bool? lastColumn = null, bool? bandedRows = null, bool? bandedColumns = null, Action<PowerPointTableScope>? configure = null) #

Adds a table with a table style name applied.

Parameters

rows int required
The value.
columns int required
The value.
styleName string required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
ignoreCase bool = true optional
The value.
firstRow bool? = null optional
The value.
lastRow bool? = null optional
The value.
firstColumn bool? = null optional
The value.
lastColumn bool? = null optional
The value.
bandedRows bool? = null optional
The value.
bandedColumns bool? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Table(int rows, int columns, PowerPointLayoutBox layout, Action<PowerPointTableScope>? configure = null) #

Adds a table using a layout box.

Parameters

rows int required
The value.
columns int required
The value.
layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Table<T>(IEnumerable<T?> rows, OfficeTableOptions? options = null, Action<PowerPointTableScope>? configure = null) #

Adds a table from typed rows, with columns from the public properties and fields of T.

Type Parameters

T
Row type.

Parameters

rows System.Collections.Generic.IEnumerable<T?> required
Rows to write.
options OfficeIMO.OfficeTableOptions? = null optional
Column selection, ordering, header, formatting and name options.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null optional
Edits the created table.

Returns

PowerPointSlideScope The same scope.
TextBox 3 overloads
public PowerPointSlideScope TextBox(string text, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointTextBoxScope>? configure = null) #

Adds a textbox with the specified text.

Parameters

text string required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TextBox(string text, PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #

Adds a textbox using a layout box.

Parameters

text string required
The value.
layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TextBox(PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #

Adds an empty textbox using a layout box.

Parameters

layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
Title 2 overloads
public PowerPointSlideScope Title(string text, OfficeLength? left = null, OfficeLength? top = null, OfficeLength? width = null, OfficeLength? height = null, Action<PowerPointTextBoxScope>? configure = null) #

Adds a title textbox to the slide.

Parameters

text string required
The value.
left OfficeIMO.OfficeLength? = null optional
The value.
top OfficeIMO.OfficeLength? = null optional
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Title(string text, PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #

Adds a title textbox using a layout box.

Parameters

text string required
The value.
layout OfficeIMO.PowerPoint.PowerPointLayoutBox required
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope Transition(PowerPointSlideTransition value) #

Sets PowerPointSlide.Transition: Transition applied when moving to this slide.

Parameters

value OfficeIMO.PowerPoint.PowerPointSlideTransition required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TransitionAdvanceAfterSeconds(double? value) #

Sets PowerPointSlide.TransitionAdvanceAfterSeconds: Gets or sets the optional automatic-advance time in seconds.

Parameters

value double? required
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TransitionAdvanceOnClick(bool? value = true) #

Sets PowerPointSlide.TransitionAdvanceOnClick: Gets or sets whether clicking advances the slide.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TransitionDurationSeconds(double? value) #

Sets PowerPointSlide.TransitionDurationSeconds: Gets or sets the optional transition duration in seconds.

Parameters

value double? required
The value.

Returns

PowerPointSlideScope The same scope.
TransitionSound 2 overloads
public PowerPointSlideScope TransitionSound(string audioPath, bool loop = false) #

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

Parameters

audioPath string required
The value.
loop bool = false optional
The value.

Returns

PowerPointSlideScope The same scope.
public PowerPointSlideScope TransitionSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav", bool loop = false) #

Sets an embedded WAV or AIFF transition sound.

Parameters

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

PowerPointSlideScope The same scope.
public PowerPointSlideScope TransitionSpeed(PowerPointSlideTransitionSpeed? value) #

Sets PowerPointSlide.TransitionSpeed: Gets or sets the optional transition playback speed.

Parameters

value OfficeIMO.PowerPoint.PowerPointSlideTransitionSpeed? required
The value.

Returns

PowerPointSlideScope The same scope.

Properties

public PowerPointSlide Model { get; } #

The PowerPointSlide this scope edits, for plain C# inside a lambda.