Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointDocumentScope

OfficeIMO.PowerPoint

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

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

Inheritance

  • object
  • PowerPointDocumentScope

Usage

Explore 23 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

public PowerPointDocumentScope ApplicationProperties(Action<PowerPointApplicationProperties> configure) #

Configures PowerPointDocument.ApplicationProperties in place: Extended application properties for the presentation.

Parameters

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

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope DocumentValidationError(OfficeOpenXmlValidationError item) #

Adds an item to PowerPointDocument.DocumentValidationErrors: Gets the list of validation errors for the presentation.

Parameters

item OfficeIMO.OfficeOpenXmlValidationError required
The item.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope DocumentValidationErrors(IEnumerable<OfficeOpenXmlValidationError> items) #

Adds items to PowerPointDocument.DocumentValidationErrors: Gets the list of validation errors for the presentation.

Parameters

items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeOpenXmlValidationError> required
The items, in order.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope GridSpacing(OfficeLength horizontal, OfficeLength vertical) #

Sets horizontal and vertical grid spacing with explicit lengths.

Parameters

horizontal OfficeIMO.OfficeLength required
The value.
vertical OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope GridSpacingX(OfficeLength value) #

Sets PowerPointDocument.GridSpacingX: Horizontal grid spacing.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope GridSpacingY(OfficeLength value) #

Sets PowerPointDocument.GridSpacingY: Vertical grid spacing.

Parameters

value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope Guides(IEnumerable<PowerPointGuideInfo> guides) #

Sets the guide list to the provided collection.

Parameters

guides System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointGuideInfo> required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope Properties(Action<PowerPointBuiltinDocumentProperties> configure) #

Configures PowerPointDocument.Properties in place: Built-in package properties for the presentation.

Parameters

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

Returns

PowerPointDocumentScope The same scope.
Slide 4 overloads
public PowerPointDocumentScope Slide(Action<PowerPointSlideScope> configure) #

Adds a slide with the first master's first layout and composes it.

Parameters

configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope> required
Adds the slide's title, text, tables and charts.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope Slide(PowerPointSlideLayoutType layoutType, int masterIndex = 0, Action<PowerPointSlideScope>? configure = null) #

Adds a slide using a layout type.

Parameters

layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType required
The value.
masterIndex int = 0 optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope Slide(string layoutName, int masterIndex = 0, bool ignoreCase = true, Action<PowerPointSlideScope>? configure = null) #

Adds a slide using a layout name.

Parameters

layoutName string required
The value.
masterIndex int = 0 optional
The value.
ignoreCase bool = true optional
The value.
configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope Slide(int masterIndex = 0, int layoutIndex = 0, Action<PowerPointSlideScope>? configure = null) #

Adds a new slide using the specified master and layout indexes.

Parameters

masterIndex int = 0 optional
Index of the slide master.
layoutIndex int = 0 optional
Index of the slide layout.
configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null optional
Configures the new item through its scope.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope SlideSize(Action<PowerPointSlideSize> configure) #

Configures PowerPointDocument.SlideSize in place: Slide size information for the presentation.

Parameters

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

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope SnapToGrid(bool value = true) #

Sets PowerPointDocument.SnapToGrid: Gets or sets whether slide view snapping uses the grid.

Parameters

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

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeColor(PowerPointThemeColor color, string hexValue, int masterIndex = 0) #

Sets a theme color value in hex format (e.g. "FF0000").

Parameters

color OfficeIMO.PowerPoint.PowerPointThemeColor required
The value.
hexValue string required
The value.
masterIndex int = 0 optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeColorForAllMasters(PowerPointThemeColor color, string hexValue) #

Sets a theme color value across all masters.

Parameters

color OfficeIMO.PowerPoint.PowerPointThemeColor required
The value.
hexValue string required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeColors(IDictionary<PowerPointThemeColor, string> colors, int masterIndex = 0) #

Sets multiple theme colors at once.

Parameters

colors System.Collections.Generic.IDictionary<OfficeIMO.PowerPoint.PowerPointThemeColor, string> required
The value.
masterIndex int = 0 optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeColorsForAllMasters(IDictionary<PowerPointThemeColor, string> colors) #

Sets multiple theme colors across all masters.

Parameters

colors System.Collections.Generic.IDictionary<OfficeIMO.PowerPoint.PowerPointThemeColor, string> required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeFonts(PowerPointThemeFontSet fonts, int masterIndex = 0, bool keepExistingWhenNull = true) #

Sets the major/minor fonts (Latin, East Asian, and complex script).

Parameters

fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet required
The value.
masterIndex int = 0 optional
The value.
keepExistingWhenNull bool = true optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeFontsForAllMasters(PowerPointThemeFontSet fonts, bool keepExistingWhenNull = true) #

Sets the major/minor fonts (Latin, East Asian, and complex script) across all masters.

Parameters

fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet required
The value.
keepExistingWhenNull bool = true optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeLatinFonts(string majorLatin, string minorLatin, int masterIndex = 0) #

Sets the major/minor Latin fonts for the theme.

Parameters

majorLatin string required
The value.
minorLatin string required
The value.
masterIndex int = 0 optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeLatinFontsForAllMasters(string majorLatin, string minorLatin) #

Sets the major/minor Latin fonts across all masters.

Parameters

majorLatin string required
The value.
minorLatin string required
The value.

Returns

PowerPointDocumentScope The same scope.
ThemeName 2 overloads
public PowerPointDocumentScope ThemeName(string name, int masterIndex = 0) #

Sets the name of a selected master's theme without restyling its layouts.

Parameters

name string required
Non-empty theme name.
masterIndex int = 0 optional
Zero-based master position.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeName(string value) #

Sets PowerPointDocument.ThemeName: Gets or sets the name of the presentation theme.

Parameters

value string required
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope ThemeNameForAllMasters(string name) #

Sets the theme name across all masters.

Parameters

name string required
The value.

Returns

PowerPointDocumentScope The same scope.
VbaProject 3 overloads
public PowerPointDocumentScope VbaProject(Stream project, long maximumBytes = 67108864) #

Adds or replaces the embedded VBA project from a complete, valid compound storage.

Parameters

project System.IO.Stream required
The value.
maximumBytes long = 67108864 optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope VbaProject(byte[] project, long maximumBytes = 67108864) #

Adds or replaces the embedded VBA project from a complete, valid compound storage.

Parameters

project byte[] required
The value.
maximumBytes long = 67108864 optional
The value.

Returns

PowerPointDocumentScope The same scope.
public PowerPointDocumentScope VbaProject(OfficeVbaProject project, OfficeVbaWriteOptions? options = null) #

Applies a native source project, preserving non-signature child parts and requiring explicit signature removal.

Parameters

project OfficeIMO.OfficeVbaProject required
The value.
options OfficeIMO.OfficeVbaWriteOptions? = null optional
The value.

Returns

PowerPointDocumentScope The same scope.

Properties

public PowerPointDocument Model { get; } #

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