PowerPointDocumentFluent
OfficeIMO.PowerPoint
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
- The instance.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointApplicationProperties>
- Configures the value.
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
- The instance.
- item OfficeIMO.OfficeOpenXmlValidationError
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeOpenXmlValidationError>
- The items, in order.
public static PowerPointDocument GridSpacing(PowerPointDocument powerPointDocument, OfficeLength horizontal, OfficeLength vertical) #Sets horizontal and vertical grid spacing with explicit lengths.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- horizontal OfficeIMO.OfficeLength
- The value.
- vertical OfficeIMO.OfficeLength
- The value.
public static PowerPointDocument GridSpacingX(PowerPointDocument powerPointDocument, OfficeLength value) #Sets PowerPointDocument.GridSpacingX: Horizontal grid spacing.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- value OfficeIMO.OfficeLength
- The value.
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
- The instance.
- value OfficeIMO.OfficeLength
- The value.
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
- The instance.
- guides System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointGuideInfo>
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointBuiltinDocumentProperties>
- Configures the value.
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
- The instance.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideSize>
- Configures the value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- The value.
- hexValue string
- The value.
- masterIndex int = 0
- The value.
public static PowerPointDocument ThemeColorForAllMasters(PowerPointDocument powerPointDocument, PowerPointThemeColor color, string hexValue) #Sets a theme color value across all masters.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- The value.
- hexValue string
- The value.
public static PowerPointDocument ThemeColors(PowerPointDocument powerPointDocument, IDictionary<PowerPointThemeColor, string> colors, int masterIndex = 0) #Sets multiple theme colors at once.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- colors System.Collections.Generic.IDictionary<OfficeIMO.PowerPoint.PowerPointThemeColor, string>
- The value.
- masterIndex int = 0
- The value.
public static PowerPointDocument ThemeColorsForAllMasters(PowerPointDocument powerPointDocument, IDictionary<PowerPointThemeColor, string> colors) #Sets multiple theme colors across all masters.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- colors System.Collections.Generic.IDictionary<OfficeIMO.PowerPoint.PowerPointThemeColor, string>
- The value.
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
- The instance.
- fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet
- The value.
- masterIndex int = 0
- The value.
- keepExistingWhenNull bool = true
- The value.
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
- The instance.
- fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet
- The value.
- keepExistingWhenNull bool = true
- The value.
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
- The instance.
- majorLatin string
- The value.
- minorLatin string
- The value.
- masterIndex int = 0
- The value.
public static PowerPointDocument ThemeLatinFontsForAllMasters(PowerPointDocument powerPointDocument, string majorLatin, string minorLatin) #Sets the major/minor Latin fonts across all masters.
Parameters
- powerPointDocument OfficeIMO.PowerPoint.PowerPointDocument
- The instance.
- majorLatin string
- The value.
- minorLatin string
- The value.
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
- The instance.
- name string
- Non-empty theme name.
- masterIndex int = 0
- Zero-based master position.
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
- The instance.
- value string
- The value.
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
- The instance.
- name string
- The value.
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
- The instance.
- project System.IO.Stream
- The value.
- maximumBytes long = 67108864
- The value.
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
- The instance.
- project byte[]
- The value.
- maximumBytes long = 67108864
- The value.
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
- The instance.
- project OfficeIMO.OfficeVbaProject
- The value.
- options OfficeIMO.OfficeVbaWriteOptions? = null
- The value.