Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointDocumentFluent

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Modifiers
static

The fluent methods of PowerPointDocument, 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
  • PowerPointDocumentFluent

Methods

public static PowerPointDocument ApplicationProperties(PowerPointDocument powerPointDocument, Action<PowerPointApplicationProperties> configure) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
configure System.Action<OfficeIMO.PowerPoint.PowerPointApplicationProperties> required
Configures the value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument DocumentValidationError(PowerPointDocument powerPointDocument, OfficeOpenXmlValidationError item) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
item OfficeIMO.OfficeOpenXmlValidationError required
The item.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument DocumentValidationErrors(PowerPointDocument powerPointDocument, IEnumerable<OfficeOpenXmlValidationError> items) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeOpenXmlValidationError> required
The items, in order.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument GridSpacing(PowerPointDocument powerPointDocument, OfficeLength horizontal, OfficeLength vertical) #

Sets horizontal and vertical grid spacing with explicit lengths.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
horizontal OfficeIMO.OfficeLength required
The value.
vertical OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument GridSpacingX(PowerPointDocument powerPointDocument, OfficeLength value) #

Sets PowerPointDocument.GridSpacingX: Horizontal grid spacing.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocument The same instance.

Examples

// C# initializer or property               // C# fluent
powerPointDocument.GridSpacingX = value;    powerPointDocument.GridSpacingX(value);
public static PowerPointDocument GridSpacingY(PowerPointDocument powerPointDocument, OfficeLength value) #

Sets PowerPointDocument.GridSpacingY: Vertical grid spacing.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PowerPointDocument The same instance.

Examples

// C# initializer or property               // C# fluent
powerPointDocument.GridSpacingY = value;    powerPointDocument.GridSpacingY(value);
public static PowerPointDocument Guides(PowerPointDocument powerPointDocument, IEnumerable<PowerPointGuideInfo> guides) #

Sets the guide list to the provided collection.

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument Properties(PowerPointDocument powerPointDocument, Action<PowerPointBuiltinDocumentProperties> configure) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
configure System.Action<OfficeIMO.PowerPoint.PowerPointBuiltinDocumentProperties> required
Configures the value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument SlideSize(PowerPointDocument powerPointDocument, Action<PowerPointSlideSize> configure) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideSize> required
Configures the value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument SnapToGrid(PowerPointDocument powerPointDocument, bool value = true) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PowerPointDocument The same instance.

Examples

// C# initializer or property             // C# fluent
powerPointDocument.SnapToGrid = value;    powerPointDocument.SnapToGrid(value);
public static PowerPointDocument ThemeColor(PowerPointDocument powerPointDocument, PowerPointThemeColor color, string hexValue, int masterIndex = 0) #

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

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeColorForAllMasters(PowerPointDocument powerPointDocument, PowerPointThemeColor color, string hexValue) #

Sets a theme color value across all masters.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
color OfficeIMO.PowerPoint.PowerPointThemeColor required
The value.
hexValue string required
The value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeColors(PowerPointDocument powerPointDocument, IDictionary<PowerPointThemeColor, string> colors, int masterIndex = 0) #

Sets multiple theme colors at once.

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeColorsForAllMasters(PowerPointDocument powerPointDocument, IDictionary<PowerPointThemeColor, string> colors) #

Sets multiple theme colors across all masters.

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeFonts(PowerPointDocument powerPointDocument, PowerPointThemeFontSet fonts, int masterIndex = 0, bool keepExistingWhenNull = true) #

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

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeFontsForAllMasters(PowerPointDocument powerPointDocument, PowerPointThemeFontSet fonts, bool keepExistingWhenNull = true) #

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

Parameters

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

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeLatinFonts(PowerPointDocument powerPointDocument, string majorLatin, string minorLatin, int masterIndex = 0) #

Sets the major/minor Latin fonts for the theme.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
majorLatin string required
The value.
minorLatin string required
The value.
masterIndex int = 0 optional
The value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeLatinFontsForAllMasters(PowerPointDocument powerPointDocument, string majorLatin, string minorLatin) #

Sets the major/minor Latin fonts across all masters.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
majorLatin string required
The value.
minorLatin string required
The value.

Returns

PowerPointDocument The same instance.
ThemeName 2 overloads
public static PowerPointDocument ThemeName(PowerPointDocument powerPointDocument, string name, int masterIndex = 0) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
name string required
Non-empty theme name.
masterIndex int = 0 optional
Zero-based master position.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument ThemeName(PowerPointDocument powerPointDocument, string value) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
value string required
The value.

Returns

PowerPointDocument The same instance.

Examples

// C# initializer or property            // C# fluent
powerPointDocument.ThemeName = value;    powerPointDocument.ThemeName(value);
public static PowerPointDocument ThemeNameForAllMasters(PowerPointDocument powerPointDocument, string name) #

Sets the theme name across all masters.

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
name string required
The value.

Returns

PowerPointDocument The same instance.
VbaProject 3 overloads
public static PowerPointDocument VbaProject(PowerPointDocument powerPointDocument, Stream project, long maximumBytes = 67108864) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
project System.IO.Stream required
The value.
maximumBytes long = 67108864 optional
The value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument VbaProject(PowerPointDocument powerPointDocument, byte[] project, long maximumBytes = 67108864) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
project byte[] required
The value.
maximumBytes long = 67108864 optional
The value.

Returns

PowerPointDocument The same instance.
public static PowerPointDocument VbaProject(PowerPointDocument powerPointDocument, OfficeVbaProject project, OfficeVbaWriteOptions? options = null) #

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

Parameters

powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required
The instance.
project OfficeIMO.OfficeVbaProject required
The value.
options OfficeIMO.OfficeVbaWriteOptions? = null optional
The value.

Returns

PowerPointDocument The same instance.