PowerPointSlideScope
OfficeIMO.PowerPoint
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.
Returned or exposed by 26
- Method PowerPointSlideScope.BackgroundColor
- Method PowerPointSlideScope.BackgroundGradient
- Method PowerPointSlideScope.BackgroundImage
- Method PowerPointSlideScope.BackgroundNoFill
- Method PowerPointSlideScope.Chart
- Method PowerPointSlideScope.ClassicAnimationSound
- Method PowerPointSlideScope.ClassicAnimationStopsSound
- Method PowerPointSlideScope.Ellipse
- Method PowerPointSlideScope.Hidden
- Method PowerPointSlideScope.Image
- Method PowerPointSlideScope.Layout
- Method PowerPointSlideScope.Line
- Method PowerPointSlideScope.Name
- Method PowerPointSlideScope.Notes
- Method PowerPointSlideScope.Rectangle
- Method PowerPointSlideScope.Shape
- Method PowerPointSlideScope.Table
- Method PowerPointSlideScope.Table``1
- Method PowerPointSlideScope.TextBox
- Method PowerPointSlideScope.Title
- Method PowerPointSlideScope.Transition
- Method PowerPointSlideScope.TransitionAdvanceAfterSeconds
- Method PowerPointSlideScope.TransitionAdvanceOnClick
- Method PowerPointSlideScope.TransitionDurationSeconds
- Method PowerPointSlideScope.TransitionSound
- Method PowerPointSlideScope.TransitionSpeed
Accepted by parameters 1
Methods
public PowerPointSlideScope BackgroundColor(OfficeColor color) #Sets a solid background, preserving native theme references and literal transparency.
Parameters
- color OfficeIMO.OfficeColor
- The value.
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?
- The value.
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
- The value.
- endColor OfficeIMO.OfficeColor
- The value.
- angleDegrees double = 135
- The value.
public PowerPointSlideScope BackgroundImage(string imagePath) #Sets a background image for the slide.
Parameters
- imagePath string
- The value.
public PowerPointSlideScope BackgroundImage(Stream image, OfficeImageFormat imageType) #Sets a background image for the slide from a readable image stream.
Parameters
- image System.IO.Stream
- Stream containing the image data.
- imageType OfficeIMO.Drawing.OfficeImageFormat
- Image format of the stream.
public PowerPointSlideScope BackgroundNoFill() #Sets an explicit no-fill slide background, overriding inherited theme fills.
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
- The value.
- data OfficeIMO.Drawing.OfficeChartData
- The value.
- options OfficeIMO.OfficeChartOptions? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointChartScope>? = null
- Configures the new item through its scope.
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
- The value.
- audioPath string
- The value.
- stopExistingSounds bool = false
- The value.
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
- 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.
public PowerPointSlideScope ClassicAnimationStopsSound(PowerPointShape shape, bool value) #Controls whether existing sounds stop when a shape's classic animation starts.
Parameters
- shape OfficeIMO.PowerPoint.PowerPointShape
- The value.
- value bool
- The value.
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
- The value.
- top OfficeIMO.OfficeLength
- The value.
- width OfficeIMO.OfficeLength
- The value.
- height OfficeIMO.OfficeLength
- The value.
- name string? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null
- Configures the new item through its scope.
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
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null
- Configures the new item through its 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
- Stream containing the image data.
- imageType OfficeIMO.Drawing.OfficeImageFormat
- Image format of the stream.
- left OfficeIMO.OfficeLength? = null
- Left position as a physical length.
- top OfficeIMO.OfficeLength? = null
- Top position as a physical length.
- width OfficeIMO.OfficeLength? = null
- Width as a physical length.
- height OfficeIMO.OfficeLength? = null
- Height as a physical length.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Image(string imagePath, PowerPointLayoutBox layout, Action<PowerPointImageScope>? configure = null) #Adds an image using a layout box.
Parameters
- imagePath string
- The value.
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null
- Configures the new item through its 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
- The value.
- imageType OfficeIMO.Drawing.OfficeImageFormat
- The value.
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointImageScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Layout(int masterIndex, int layoutIndex) #Sets the slide layout using master and layout indexes.
Parameters
- masterIndex int
- The value.
- layoutIndex int
- The value.
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
- The value.
public PowerPointSlideScope Layout(PowerPointSlideLayoutType layoutType, int masterIndex = 0) #Sets the slide layout using a layout type.
Parameters
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType
- The value.
- masterIndex int = 0
- The value.
public PowerPointSlideScope Layout(string layoutName, int masterIndex = 0, bool ignoreCase = true) #Sets the slide layout using a layout name.
Parameters
- layoutName string
- The value.
- masterIndex int = 0
- The value.
- ignoreCase bool = true
- The value.
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>
- Configures the value.
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
- The value.
- startY OfficeIMO.OfficeLength
- The value.
- endX OfficeIMO.OfficeLength
- The value.
- endY OfficeIMO.OfficeLength
- The value.
- name string? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Name(string? value) #Sets PowerPointSlide.Name: Gets or sets the authored slide name stored in common slide data.
Parameters
- value string?
- The value.
public PowerPointSlideScope Notes(Action<PowerPointNotesScope> configure) #Notes associated with the slide.
Parameters
- configure System.Action<OfficeIMO.PowerPoint.PowerPointNotesScope>
- Configures it through its 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
- The value.
- top OfficeIMO.OfficeLength
- The value.
- width OfficeIMO.OfficeLength
- The value.
- height OfficeIMO.OfficeLength
- The value.
- name string? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null
- Configures the new item through its 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
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- name string? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointAutoShapeScope>? = null
- Configures the new item through its scope.
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>
- Sets the columns, header and rows.
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
- The value.
- columns int
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null
- Configures the new item through its 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
- The value.
- columns int
- The value.
- preset OfficeIMO.PowerPoint.PowerPointTableStylePreset
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null
- Configures the new item through its 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
- The value.
- columns int
- The value.
- styleName string
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- ignoreCase bool = true
- The value.
- firstRow bool? = null
- The value.
- lastRow bool? = null
- The value.
- firstColumn bool? = null
- The value.
- lastColumn bool? = null
- The value.
- bandedRows bool? = null
- The value.
- bandedColumns bool? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Table(int rows, int columns, PowerPointLayoutBox layout, Action<PowerPointTableScope>? configure = null) #Adds a table using a layout box.
Parameters
- rows int
- The value.
- columns int
- The value.
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null
- Configures the new item through its 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?>
- Rows to write.
- options OfficeIMO.OfficeTableOptions? = null
- Column selection, ordering, header, formatting and name options.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope>? = null
- Edits the created table.
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
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope TextBox(string text, PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #Adds a textbox using a layout box.
Parameters
- text string
- The value.
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope TextBox(PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #Adds an empty textbox using a layout box.
Parameters
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null
- Configures the new item through its scope.
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
- The value.
- left OfficeIMO.OfficeLength? = null
- The value.
- top OfficeIMO.OfficeLength? = null
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Title(string text, PowerPointLayoutBox layout, Action<PowerPointTextBoxScope>? configure = null) #Adds a title textbox using a layout box.
Parameters
- text string
- The value.
- layout OfficeIMO.PowerPoint.PowerPointLayoutBox
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointTextBoxScope>? = null
- Configures the new item through its scope.
public PowerPointSlideScope Transition(PowerPointSlideTransition value) #Sets PowerPointSlide.Transition: Transition applied when moving to this slide.
Parameters
- value OfficeIMO.PowerPoint.PowerPointSlideTransition
- The value.
public PowerPointSlideScope TransitionAdvanceAfterSeconds(double? value) #Sets PowerPointSlide.TransitionAdvanceAfterSeconds: Gets or sets the optional automatic-advance time in seconds.
Parameters
- value double?
- The value.
public PowerPointSlideScope TransitionAdvanceOnClick(bool? value = true) #Sets PowerPointSlide.TransitionAdvanceOnClick: Gets or sets whether clicking advances the slide.
Parameters
- value bool? = true
- The value; true when omitted.
public PowerPointSlideScope TransitionDurationSeconds(double? value) #Sets PowerPointSlide.TransitionDurationSeconds: Gets or sets the optional transition duration in seconds.
Parameters
- value double?
- The value.
public PowerPointSlideScope TransitionSound(string audioPath, bool loop = false) #Sets an embedded WAV or AIFF transition sound from a file.
Parameters
- audioPath string
- The value.
- loop bool = false
- The value.
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
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- The value.
- loop bool = false
- The value.
public PowerPointSlideScope TransitionSpeed(PowerPointSlideTransitionSpeed? value) #Sets PowerPointSlide.TransitionSpeed: Gets or sets the optional transition playback speed.
Parameters
- value OfficeIMO.PowerPoint.PowerPointSlideTransitionSpeed?
- The value.
Inherited Methods
Properties
public PowerPointSlide Model { get; } #The PowerPointSlide this scope edits, for plain C# inside a lambda.