# PowerPointDocumentFluent

The fluent methods of PowerPointDocument, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

static

The fluent methods of [PowerPointDocument](/api/powerpoint/officeimo-powerpoint-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

Filter members 

Show inherited

## Methods

`public static PowerPointDocument ApplicationProperties(PowerPointDocument powerPointDocument, Action<PowerPointApplicationProperties> configure)` [#](#method-applicationproperties-officeimo-powerpoint-powerpointdocument-action-officeimo-powerpoint-powerpointapplicationproperties)

Configures [PowerPointDocument.ApplicationProperties](/api/powerpoint/officeimo-powerpoint-powerpointdocument/) 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)` [#](#method-documentvalidationerror-officeimo-powerpoint-powerpointdocument-officeimo-officeopenxmlvalidationerror)

Adds an item to [PowerPointDocument.DocumentValidationErrors](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): 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)` [#](#method-documentvalidationerrors-officeimo-powerpoint-powerpointdocument-collections-generic-ienumerable-officeimo-officeopenxmlvalidationerror)

Adds items to [PowerPointDocument.DocumentValidationErrors](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): 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)` [#](#method-gridspacing-officeimo-powerpoint-powerpointdocument-officeimo-officelength-officeimo-officelength)

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)` [#](#method-gridspacingx-officeimo-powerpoint-powerpointdocument-officeimo-officelength)

Sets [PowerPointDocument.GridSpacingX](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): Horizontal grid spacing.

Parameters

**powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointDocument` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointDocument.GridSpacingX = value;    powerPointDocument.GridSpacingX(value);
```

`public static PowerPointDocument GridSpacingY(PowerPointDocument powerPointDocument, OfficeLength value)` [#](#method-gridspacingy-officeimo-powerpoint-powerpointdocument-officeimo-officelength)

Sets [PowerPointDocument.GridSpacingY](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): Vertical grid spacing.

Parameters

**powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointDocument` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointDocument.GridSpacingY = value;    powerPointDocument.GridSpacingY(value);
```

`public static PowerPointDocument Guides(PowerPointDocument powerPointDocument, IEnumerable<PowerPointGuideInfo> guides)` [#](#method-guides-officeimo-powerpoint-powerpointdocument-collections-generic-ienumerable-officeimo-powerpoint-powerpointguideinfo)

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)` [#](#method-properties-officeimo-powerpoint-powerpointdocument-action-officeimo-powerpoint-powerpointbuiltindocumentproperties)

Configures [PowerPointDocument.Properties](/api/powerpoint/officeimo-powerpoint-powerpointdocument/) 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)` [#](#method-slidesize-officeimo-powerpoint-powerpointdocument-action-officeimo-powerpoint-powerpointslidesize)

Configures [PowerPointDocument.SlideSize](/api/powerpoint/officeimo-powerpoint-powerpointdocument/) 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)` [#](#method-snaptogrid-officeimo-powerpoint-powerpointdocument-boolean)

Sets [PowerPointDocument.SnapToGrid](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): 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

```csharp
// 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)` [#](#method-themecolor-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-powerpointthemecolor-string-int32)

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)` [#](#method-themecolorforallmasters-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-powerpointthemecolor-string)

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)` [#](#method-themecolors-officeimo-powerpoint-powerpointdocument-collections-generic-idictionary-officeimo-powerpoint-powerpointthemecolor-system-string-int32)

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)` [#](#method-themecolorsforallmasters-officeimo-powerpoint-powerpointdocument-collections-generic-idictionary-officeimo-powerpoint-powerpointthemecolor-system-string)

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)` [#](#method-themefonts-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-powerpointthemefontset-int32-boolean)

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)` [#](#method-themefontsforallmasters-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-powerpointthemefontset-boolean)

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)` [#](#method-themelatinfonts-officeimo-powerpoint-powerpointdocument-string-string-int32)

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)` [#](#method-themelatinfontsforallmasters-officeimo-powerpoint-powerpointdocument-string-string)

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)` [#](#method-themename-officeimo-powerpoint-powerpointdocument-string-int32)

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)` [#](#method-themename-officeimo-powerpoint-powerpointdocument-string)

Sets [PowerPointDocument.ThemeName](/api/powerpoint/officeimo-powerpoint-powerpointdocument/): 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

```csharp
// C# initializer or property            // C# fluent
powerPointDocument.ThemeName = value;    powerPointDocument.ThemeName(value);
```

`public static PowerPointDocument ThemeNameForAllMasters(PowerPointDocument powerPointDocument, string name)` [#](#method-themenameforallmasters-officeimo-powerpoint-powerpointdocument-string)

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)` [#](#method-vbaproject-officeimo-powerpoint-powerpointdocument-io-stream-int64)

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)` [#](#method-vbaproject-officeimo-powerpoint-powerpointdocument-byte-int64)

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)` [#](#method-vbaproject-officeimo-powerpoint-powerpointdocument-officeimo-officevbaproject-officeimo-officevbawriteoptions)

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.

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

<!-- PowerForge markdown artifact sha256:35AECA6AA68A5C4712304C5BB28FCD9A2BB7587AF0620311AD154A427FDDCD39 -->
