# PowerPointSlideScope

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

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[PowerPointScopes.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L56)

**Modifiers**

sealed

Edits one [PowerPointSlide](/api/powerpoint/officeimo-powerpoint-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.

### Returned or exposed by 26

- Method [PowerPointSlideScope.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-backgroundcolor-nullable-officeimo-officecolor)
- Method [PowerPointSlideScope.BackgroundGradient](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-backgroundgradient-officeimo-officecolor-officeimo-officecolor-double)
- Method [PowerPointSlideScope.BackgroundImage](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-backgroundimage-string)
- Method [PowerPointSlideScope.BackgroundNoFill](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-backgroundnofill)
- Method [PowerPointSlideScope.Chart](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-chart-officeimo-officecharttype-officeimo-drawing-officechartdata-officeimo-officechartoptions-action-officeimo-powerpoint-powerpointchartscope)
- Method [PowerPointSlideScope.ClassicAnimationSound](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-classicanimationsound-officeimo-powerpoint-powerpointshape-string-boolean)
- Method [PowerPointSlideScope.ClassicAnimationStopsSound](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-classicanimationstopssound-officeimo-powerpoint-powerpointshape-boolean)
- Method [PowerPointSlideScope.Ellipse](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-ellipse-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)
- Method [PowerPointSlideScope.Hidden](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-hidden-boolean)
- Method [PowerPointSlideScope.Image](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-image-io-stream-officeimo-drawing-officeimageformat-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointimagescope)
- Method [PowerPointSlideScope.Layout](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-layout-officeimo-powerpoint-powerpointslidelayout)
- Method [PowerPointSlideScope.Line](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-line-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)
- Method [PowerPointSlideScope.Name](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-name-string)
- Method [PowerPointSlideScope.Notes](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-notes-action-officeimo-powerpoint-powerpointnotesscope)
- Method [PowerPointSlideScope.Rectangle](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-rectangle-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)
- Method [PowerPointSlideScope.Shape](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-shape-officeimo-drawing-officepresetshapetype-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)
- Method [PowerPointSlideScope.Table](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-table-int32-int32-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointtablescope)
- Method [PowerPointSlideScope.Table``1](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-table-collections-generic-ienumerable-officeimo-officetableoptions-action-officeimo-powerpoint-powerpointtablescope)
- Method [PowerPointSlideScope.TextBox](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-textbox-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointtextboxscope)
- Method [PowerPointSlideScope.Title](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-title-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointtextboxscope)
- Method [PowerPointSlideScope.Transition](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transition-officeimo-powerpoint-powerpointslidetransition)
- Method [PowerPointSlideScope.TransitionAdvanceAfterSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transitionadvanceafterseconds-nullable-system-double)
- Method [PowerPointSlideScope.TransitionAdvanceOnClick](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transitionadvanceonclick-nullable-system-boolean)
- Method [PowerPointSlideScope.TransitionDurationSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transitiondurationseconds-nullable-system-double)
- Method [PowerPointSlideScope.TransitionSound](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transitionsound-io-stream-string-string-string-boolean)
- Method [PowerPointSlideScope.TransitionSpeed](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-transitionspeed-nullable-officeimo-powerpoint-powerpointslidetransitionspeed)

### Accepted by parameters 1

- Method [PowerPointDocumentScope.Slide](/api/powerpoint/officeimo-powerpoint-powerpointdocumentscope/#method-slide-action-officeimo-powerpoint-powerpointslidescope) parameter `configure`

Filter members 

Show inherited

## Methods

BackgroundColor 2 overloads

`public PowerPointSlideScope BackgroundColor(OfficeColor color)` [#](#method-backgroundcolor-officeimo-officecolor)

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)` [#](#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.

Parameters

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PowerPointSlideScope` The same scope.

`public PowerPointSlideScope BackgroundGradient(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.

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)` [#](#method-backgroundimage-string)

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)` [#](#method-backgroundimage-io-stream-officeimo-drawing-officeimageformat)

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()` [#](#method-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)` [#](#method-chart-officeimo-officecharttype-officeimo-drawing-officechartdata-officeimo-officechartoptions-action-officeimo-powerpoint-powerpointchartscope)

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)` [#](#method-classicanimationsound-officeimo-powerpoint-powerpointshape-string-boolean)

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)` [#](#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.

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)` [#](#method-classicanimationstopssound-officeimo-powerpoint-powerpointshape-boolean)

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)` [#](#method-ellipse-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)

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)` [#](#method-hidden-boolean)

Sets [PowerPointSlide.Hidden](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-image-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointimagescope)

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)` [#](#member-f399bc566375a012602369f5)

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)` [#](#method-image-string-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointimagescope)

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)` [#](#method-image-io-stream-officeimo-drawing-officeimageformat-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointimagescope)

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)` [#](#method-layout-int32-int32)

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)` [#](#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.

Parameters

**layout OfficeIMO.PowerPoint.PowerPointSlideLayout required**

The value.

Returns

`PowerPointSlideScope` The same scope.

`public PowerPointSlideScope Layout(PowerPointSlideLayoutType layoutType, int masterIndex = 0)` [#](#method-layout-officeimo-powerpoint-powerpointslidelayouttype-int32)

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)` [#](#method-layout-string-int32-boolean)

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)` [#](#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.

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)` [#](#method-line-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)

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)` [#](#method-name-string)

Sets [PowerPointSlide.Name](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-notes-action-officeimo-powerpoint-powerpointnotesscope)

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)` [#](#method-rectangle-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-action-officeimo-powerpoint-powerpointautoshapescope)

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)` [#](#member-3afbfa427d811151aeb04dc9)

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)` [#](#method-table-action-officeimo-powerpoint-powerpointtablebuilder)

[PowerPointScopes.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L56)

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)` [#](#member-cb048ae3614df3268bc8f689)

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)` [#](#member-55797b9ba8334e63e17c2bd5)

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)` [#](#member-49623973d4729e1db688c9ee)

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)` [#](#method-table-int32-int32-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointtablescope)

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)` [#](#method-table-collections-generic-ienumerable-officeimo-officetableoptions-action-officeimo-powerpoint-powerpointtablescope)

[PowerPointScopes.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L68)

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)` [#](#method-textbox-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointtextboxscope)

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)` [#](#method-textbox-string-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointtextboxscope)

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)` [#](#method-textbox-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointtextboxscope)

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)` [#](#method-title-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-powerpoint-powerpointtextboxscope)

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)` [#](#method-title-string-officeimo-powerpoint-powerpointlayoutbox-action-officeimo-powerpoint-powerpointtextboxscope)

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)` [#](#method-transition-officeimo-powerpoint-powerpointslidetransition)

Sets [PowerPointSlide.Transition](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-transitionadvanceafterseconds-nullable-system-double)

Sets [PowerPointSlide.TransitionAdvanceAfterSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-transitionadvanceonclick-nullable-system-boolean)

Sets [PowerPointSlide.TransitionAdvanceOnClick](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-transitiondurationseconds-nullable-system-double)

Sets [PowerPointSlide.TransitionDurationSeconds](/api/powerpoint/officeimo-powerpoint-powerpointslide/): 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)` [#](#method-transitionsound-string-boolean)

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)` [#](#method-transitionsound-io-stream-string-string-string-boolean)

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)` [#](#method-transitionspeed-nullable-officeimo-powerpoint-powerpointslidetransitionspeed)

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

Parameters

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

The value.

Returns

`PowerPointSlideScope` The same scope.

## 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?`

## Properties

`public PowerPointSlide Model { get; }` [#](#property-model)

The [PowerPointSlide](/api/powerpoint/officeimo-powerpoint-powerpointslide/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:621A9C3FF62BA18B39E05CAA7DD91F35E0641F8AD3760962305F53923640D9BD -->
