PowerPointDocumentScope
OfficeIMO.PowerPoint
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.
Returned or exposed by 22
- Method PowerPointDocumentScope.ApplicationProperties
- Method PowerPointDocumentScope.DocumentValidationError
- Method PowerPointDocumentScope.DocumentValidationErrors
- Method PowerPointDocumentScope.GridSpacing
- Method PowerPointDocumentScope.GridSpacingX
- Method PowerPointDocumentScope.GridSpacingY
- Method PowerPointDocumentScope.Guides
- Method PowerPointDocumentScope.Properties
- Method PowerPointDocumentScope.Slide
- Method PowerPointDocumentScope.SlideSize
- Method PowerPointDocumentScope.SnapToGrid
- Method PowerPointDocumentScope.ThemeColor
- Method PowerPointDocumentScope.ThemeColorForAllMasters
- Method PowerPointDocumentScope.ThemeColors
- Method PowerPointDocumentScope.ThemeColorsForAllMasters
- Method PowerPointDocumentScope.ThemeFonts
- Method PowerPointDocumentScope.ThemeFontsForAllMasters
- Method PowerPointDocumentScope.ThemeLatinFonts
- Method PowerPointDocumentScope.ThemeLatinFontsForAllMasters
- Method PowerPointDocumentScope.ThemeName
- Method PowerPointDocumentScope.ThemeNameForAllMasters
- Method PowerPointDocumentScope.VbaProject
Accepted by parameters 1
- Method PowerPointDocument.Create
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>
- Configures the value.
public PowerPointDocumentScope DocumentValidationError(OfficeOpenXmlValidationError item) #Adds an item to PowerPointDocument.DocumentValidationErrors: Gets the list of validation errors for the presentation.
Parameters
- item OfficeIMO.OfficeOpenXmlValidationError
- The item.
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>
- The items, in order.
public PowerPointDocumentScope GridSpacing(OfficeLength horizontal, OfficeLength vertical) #Sets horizontal and vertical grid spacing with explicit lengths.
Parameters
- horizontal OfficeIMO.OfficeLength
- The value.
- vertical OfficeIMO.OfficeLength
- The value.
public PowerPointDocumentScope GridSpacingX(OfficeLength value) #Sets PowerPointDocument.GridSpacingX: Horizontal grid spacing.
Parameters
- value OfficeIMO.OfficeLength
- The value.
public PowerPointDocumentScope GridSpacingY(OfficeLength value) #Sets PowerPointDocument.GridSpacingY: Vertical grid spacing.
Parameters
- value OfficeIMO.OfficeLength
- The value.
public PowerPointDocumentScope Guides(IEnumerable<PowerPointGuideInfo> guides) #Sets the guide list to the provided collection.
Parameters
- guides System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointGuideInfo>
- The value.
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>
- Configures the value.
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>
- Adds the slide's title, text, tables and charts.
public PowerPointDocumentScope Slide(PowerPointSlideLayoutType layoutType, int masterIndex = 0, Action<PowerPointSlideScope>? configure = null) #Adds a slide using a layout type.
Parameters
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType
- The value.
- masterIndex int = 0
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null
- Configures the new item through its 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
- The value.
- masterIndex int = 0
- The value.
- ignoreCase bool = true
- The value.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null
- Configures the new item through its 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
- Index of the slide master.
- layoutIndex int = 0
- Index of the slide layout.
- configure System.Action<OfficeIMO.PowerPoint.PowerPointSlideScope>? = null
- Configures the new item through its 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>
- Configures the value.
public PowerPointDocumentScope SnapToGrid(bool value = true) #Sets PowerPointDocument.SnapToGrid: Gets or sets whether slide view snapping uses the grid.
Parameters
- value bool = true
- The value; true when omitted.
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
- The value.
- hexValue string
- The value.
- masterIndex int = 0
- The value.
public PowerPointDocumentScope ThemeColorForAllMasters(PowerPointThemeColor color, string hexValue) #Sets a theme color value across all masters.
Parameters
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- The value.
- hexValue string
- The value.
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>
- The value.
- masterIndex int = 0
- The value.
public PowerPointDocumentScope ThemeColorsForAllMasters(IDictionary<PowerPointThemeColor, string> colors) #Sets multiple theme colors across all masters.
Parameters
- colors System.Collections.Generic.IDictionary<OfficeIMO.PowerPoint.PowerPointThemeColor, string>
- The value.
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
- The value.
- masterIndex int = 0
- The value.
- keepExistingWhenNull bool = true
- The value.
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
- The value.
- keepExistingWhenNull bool = true
- The value.
public PowerPointDocumentScope ThemeLatinFonts(string majorLatin, string minorLatin, int masterIndex = 0) #Sets the major/minor Latin fonts for the theme.
Parameters
- majorLatin string
- The value.
- minorLatin string
- The value.
- masterIndex int = 0
- The value.
public PowerPointDocumentScope ThemeLatinFontsForAllMasters(string majorLatin, string minorLatin) #Sets the major/minor Latin fonts across all masters.
Parameters
- majorLatin string
- The value.
- minorLatin string
- The value.
public PowerPointDocumentScope ThemeName(string name, int masterIndex = 0) #Sets the name of a selected master's theme without restyling its layouts.
Parameters
- name string
- Non-empty theme name.
- masterIndex int = 0
- Zero-based master position.
public PowerPointDocumentScope ThemeName(string value) #Sets PowerPointDocument.ThemeName: Gets or sets the name of the presentation theme.
Parameters
- value string
- The value.
public PowerPointDocumentScope ThemeNameForAllMasters(string name) #Sets the theme name across all masters.
Parameters
- name string
- The value.
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
- The value.
- maximumBytes long = 67108864
- The value.
public PowerPointDocumentScope VbaProject(byte[] project, long maximumBytes = 67108864) #Adds or replaces the embedded VBA project from a complete, valid compound storage.
Parameters
- project byte[]
- The value.
- maximumBytes long = 67108864
- The value.
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
- The value.
- options OfficeIMO.OfficeVbaWriteOptions? = null
- The value.
Inherited Methods
Properties
public PowerPointDocument Model { get; } #The PowerPointDocument this scope edits, for plain C# inside a lambda.