API Reference
PowerPointPresentation
Represents a PowerPoint presentation providing create, load, and save operations.
Inheritance
- Object
- PowerPointPresentation
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property LegacyPptLoadResult.Document
- Method PowerPointDeckDesign.ApplyTo
- Method PowerPointPresentation.Create
- Method PowerPointPresentation.Create
- Method PowerPointPresentation.Create
- Method PowerPointPresentation.Load
- Method PowerPointPresentation.Load
- Method PowerPointPresentation.Load
- Method PowerPointPresentation.Load
- Method PowerPointPresentation.LoadAsync
- Method PowerPointPresentation.LoadAsync
- Method PowerPointPresentation.LoadEncrypted
- Method PowerPointPresentation.LoadEncrypted
- Method PowerPointPresentation.LoadEncrypted
- Method PowerPointPresentation.LoadEncrypted
- Method PowerPointPresentation.LoadEncryptedAsync
- Method PowerPointPresentation.LoadEncryptedAsync
- Method PowerPointPresentation.LoadLegacyPpt
- Method PowerPointPresentation.LoadLegacyPpt
- Method PowerPointTemplate.CreatePresentation
Accepted by parameters
- Method PowerPointDeckDesign.ApplyTo
- Method PowerPointExtractionExtensions.ExtractMarkdownChunks
- Extension method PowerPointPresentation.ExtractMarkdownChunks
- Method PowerPointPresentation.ImportSlide
- Method PowerPointTemplate.Inspect
- Method PowerPointTemplateInventory.ApplyBrandTo
Methods
public PowerPointClassicComment AddClassicComment(PowerPointSlide slide, PowerPointCommentAuthor author, String text, Int64 x = 0, Int64 y = 0, Nullable<DateTime> created = null) #PowerPointClassicCommentAdds a classic comment that can round-trip through PPTX and binary PPT.
Parameters
- slide OfficeIMO.PowerPoint.PowerPointSlide
- author OfficeIMO.PowerPoint.PowerPointCommentAuthor
- text System.String
- x System.Int64 = 0
- y System.Int64 = 0
- created System.Nullable{System.DateTime} = null
public Void AddColumnGuides(Int32 columnCount, Int64 marginEmus, Int64 gutterEmus, Boolean includeOuterEdges = true, Boolean clearExisting = false) #VoidAdds vertical column guides based on a grid definition.
Parameters
- columnCount System.Int32
- marginEmus System.Int64
- gutterEmus System.Int64
- includeOuterEdges System.Boolean = true
- clearExisting System.Boolean = false
public Void AddColumnGuidesCm(Int32 columnCount, Double marginCm, Double gutterCm, Boolean includeOuterEdges = true, Boolean clearExisting = false) #VoidAdds vertical column guides using centimeters.
Parameters
- columnCount System.Int32
- marginCm System.Double
- gutterCm System.Double
- includeOuterEdges System.Boolean = true
- clearExisting System.Boolean = false
public PowerPointCustomShow AddCustomShow(String name, IEnumerable<PowerPointSlide> slides) #PowerPointCustomShowCreates a custom show with an explicit, nonempty slide sequence.
Parameters
- name System.String
- slides System.Collections.Generic.IEnumerable{OfficeIMO.PowerPoint.PowerPointSlide}
public Void AddGuide(PowerPointGuideOrientation orientation, Int64 positionEmus) #VoidAdds a guide to slide view.
Parameters
- orientation OfficeIMO.PowerPoint.PowerPointGuideOrientation
- positionEmus System.Int64
public Void AddGuideCm(PowerPointGuideOrientation orientation, Double positionCm) #VoidAdds a guide using centimeter measurements.
Parameters
- orientation OfficeIMO.PowerPoint.PowerPointGuideOrientation
- positionCm System.Double
public Void AddGuideInches(PowerPointGuideOrientation orientation, Double positionInches) #VoidAdds a guide using inch measurements.
Parameters
- orientation OfficeIMO.PowerPoint.PowerPointGuideOrientation
- positionInches System.Double
public Void AddGuidePoints(PowerPointGuideOrientation orientation, Double positionPoints) #VoidAdds a guide using point measurements.
Parameters
- orientation OfficeIMO.PowerPoint.PowerPointGuideOrientation
- positionPoints System.Double
public PowerPointModernComment AddModernComment(PowerPointSlide slide, PowerPointCommentAuthor author, String text, PowerPointModernCommentStatus status = Active, Int64 x = 0, Int64 y = 0, Nullable<DateTime> created = null) #PowerPointModernCommentAdds a modern threaded comment to a slide.
Parameters
- slide OfficeIMO.PowerPoint.PowerPointSlide
- author OfficeIMO.PowerPoint.PowerPointCommentAuthor
- text System.String
- status OfficeIMO.PowerPoint.PowerPointModernCommentStatus = Active
- x System.Int64 = 0
- y System.Int64 = 0
- created System.Nullable{System.DateTime} = null
public Void AddRowGuides(Int32 rowCount, Int64 marginEmus, Int64 gutterEmus, Boolean includeOuterEdges = true, Boolean clearExisting = false) #VoidAdds horizontal row guides based on a grid definition.
Parameters
- rowCount System.Int32
- marginEmus System.Int64
- gutterEmus System.Int64
- includeOuterEdges System.Boolean = true
- clearExisting System.Boolean = false
public Void AddRowGuidesCm(Int32 rowCount, Double marginCm, Double gutterCm, Boolean includeOuterEdges = true, Boolean clearExisting = false) #VoidAdds horizontal row guides using centimeters.
Parameters
- rowCount System.Int32
- marginCm System.Double
- gutterCm System.Double
- includeOuterEdges System.Boolean = true
- clearExisting System.Boolean = false
public PowerPointSectionInfo AddSection(String name, Int32 startSlideIndex) #PowerPointSectionInfoAdds a new section starting at the specified slide index.
Parameters
- name System.String
- startSlideIndex System.Int32
public PowerPointSlide AddSlide(PowerPointSlideLayoutType layoutType, Int32 masterIndex = 0) #PowerPointSlideAdds a slide using a layout type.
Parameters
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType
- masterIndex System.Int32 = 0
public PowerPointSlide AddSlide(String layoutName, Int32 masterIndex = 0, Boolean ignoreCase = true) #PowerPointSlideAdds a slide using a layout name.
Parameters
- layoutName System.String
- masterIndex System.Int32 = 0
- ignoreCase System.Boolean = true
public PowerPointSlide AddSlide(Int32 masterIndex = 0, Int32 layoutIndex = 0) #PowerPointSlideAdds a new slide using the specified master and layout indexes.
Parameters
- masterIndex System.Int32 = 0
- Index of the slide master.
- layoutIndex System.Int32 = 0
- Index of the slide layout.
public PowerPointSlide AddSlide(PowerPointTemplateLayoutInfo layout) #PowerPointSlideAdds a slide using a layout selected from a template inventory.
Parameters
- layout OfficeIMO.PowerPoint.PowerPointTemplateLayoutInfo
public PowerPointPaginatedTableResult AddTableSlides<T>(IEnumerable<T> data, IEnumerable<PowerPointTableColumn<T>> columns, PowerPointTablePaginationOptions options = null) #PowerPointPaginatedTableResultAdds as many slides as required to represent every data row in native PowerPoint tables. Capacity is measured from the table box and minimum row height, and headers repeat by default.
Type Parameters
- T
Parameters
- data System.Collections.Generic.IEnumerable{``0}
- columns System.Collections.Generic.IEnumerable{OfficeIMO.PowerPoint.PowerPointTableColumn{``0}}
- options OfficeIMO.PowerPoint.PowerPointTablePaginationOptions = null
public static PowerPointPresentationConversionReport AnalyzeConversion(String sourcePath, String destinationPath, PowerPointPresentationConversionOptions options = null) #PowerPointPresentationConversionReportAnalyzes a file-to-file PowerPoint conversion without creating or changing an artifact.
Parameters
- sourcePath System.String
- destinationPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationConversionOptions = null
public static async Task<PowerPointPresentationConversionReport> AnalyzeConversionAsync(String sourcePath, String destinationPath, PowerPointPresentationConversionOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentationConversionReport>Asynchronously analyzes a file-to-file PowerPoint conversion without creating or changing an artifact.
Parameters
- sourcePath System.String
- destinationPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationConversionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public LegacyPptWritePreflightReport AnalyzeLegacyPptWrite() #LegacyPptWritePreflightReportAnalyzes whether this presentation fits the native binary PPT/POT/PPS writer subset.
public Void ClearSlides() #VoidRemoves all slides while preserving reusable template masters, layouts, themes, and assets.
public PowerPointCompositionResult Compose(PowerPointDeckPlan plan, PowerPointCompositionOptions options) #PowerPointCompositionResultComposes a semantic deck plan into this presentation through the single shared layout engine.
Parameters
- plan OfficeIMO.PowerPoint.PowerPointDeckPlan
- Semantic slide intent to render.
- options OfficeIMO.PowerPoint.PowerPointCompositionOptions
- Design, continuation, template-layout, validation, and preflight policy.
Returns
The resolved plan, design, rendered slides, and preflight report.
public static PowerPointPresentationConversionResult Convert(String sourcePath, String destinationPath, PowerPointPresentationConversionOptions options = null) #PowerPointPresentationConversionResultConverts a PowerPoint file and returns format and feature-level fidelity diagnostics.
Parameters
- sourcePath System.String
- destinationPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationConversionOptions = null
public static async Task<PowerPointPresentationConversionResult> ConvertAsync(String sourcePath, String destinationPath, PowerPointPresentationConversionOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentationConversionResult>Asynchronously converts a PowerPoint file and returns feature-level fidelity diagnostics.
Parameters
- sourcePath System.String
- destinationPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationConversionOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static PowerPointPresentation Create() #PowerPointPresentationCreates a detached presentation with explicit persistence.
public static PowerPointPresentation Create(String filePath, PowerPointCreateOptions options = null) #PowerPointPresentationCreates a new presentation associated with a file path. The path is not created until Save is called or SaveOnDispose is explicitly enabled.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointCreateOptions = null
public static PowerPointPresentation Create(Stream stream, PowerPointCreateOptions options = null) #PowerPointPresentationCreates a new presentation associated with a caller-owned stream. The stream is not written until Save is called or SaveOnDispose is explicitly enabled.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.PowerPointCreateOptions = null
public virtual Void Dispose() #Voidpublic virtual async ValueTask DisposeAsync() #ValueTaskAsynchronously persists opt-in changes and releases package resources.
public PowerPointSlide DuplicateSlide(Int32 index, Nullable<Int32> insertAt = null) #PowerPointSlideDuplicates a slide and inserts it into the presentation.
Parameters
- index System.Int32
- Index of the slide to duplicate.
- insertAt System.Nullable{System.Int32} = null
- Index where the duplicate should be inserted. Defaults to index + 1.
public PowerPointTextBox EnsureLayoutDateTimePlaceholderTextBox(Int32 masterIndex = 0, Int32 layoutIndex = 0, String text = null, Nullable<PowerPointLayoutBox> bounds = null, Nullable<UInt32> index = null) #PowerPointTextBoxEnsures a native date/time placeholder exists on the specified slide layout.
Parameters
- masterIndex System.Int32 = 0
- layoutIndex System.Int32 = 0
- text System.String = null
- bounds System.Nullable{OfficeIMO.PowerPoint.PowerPointLayoutBox} = null
- index System.Nullable{System.UInt32} = null
public PowerPointTextBox EnsureLayoutPlaceholderTextBox(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, Nullable<UInt32> index = null, Nullable<PowerPointLayoutBox> bounds = null, String name = null) #PowerPointTextBoxEnsures a layout placeholder textbox exists, creating it if missing.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- index System.Nullable{System.UInt32} = null
- bounds System.Nullable{OfficeIMO.PowerPoint.PowerPointLayoutBox} = null
- name System.String = null
public PowerPointTextBox EnsureLayoutSlideNumberPlaceholderTextBox(Int32 masterIndex = 0, Int32 layoutIndex = 0, String text = null, Nullable<PowerPointLayoutBox> bounds = null, Nullable<UInt32> index = null) #PowerPointTextBoxEnsures a native slide-number placeholder exists on the specified slide layout.
Parameters
- masterIndex System.Int32 = 0
- layoutIndex System.Int32 = 0
- text System.String = null
- bounds System.Nullable{OfficeIMO.PowerPoint.PowerPointLayoutBox} = null
- index System.Nullable{System.UInt32} = null
public IReadOnlyList<OfficeImageExportResult> ExportImages(OfficeImageExportFormat format, PowerPointPresentationImageExportOptions options = null) #IReadOnlyList<OfficeImageExportResult>Exports presentation slides as supported raster formats or SVG images.
Parameters
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
public Void ExportImages(OfficeImageExportFormat format, OfficeImageExportConsumer consumer, PowerPointPresentationImageExportOptions options = null, CancellationToken cancellationToken = null) #VoidStreams selected slide images to a consumer without retaining earlier payloads.
Parameters
- format OfficeIMO.Drawing.OfficeImageExportFormat
- consumer OfficeIMO.Drawing.OfficeImageExportConsumer
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Void ExportSlide(Int32 slideIndex, String filePath) #VoidExports a single slide as a standalone one-slide PowerPoint presentation.
Parameters
- slideIndex System.Int32
- Zero-based index of the slide to export.
- filePath System.String
- Destination .pptx path.
public Void ExportSlide(Int32 slideIndex, Stream destination) #VoidExports a single slide as a standalone one-slide PowerPoint presentation.
Parameters
- slideIndex System.Int32
- Zero-based index of the slide to export.
- destination System.IO.Stream
- Writable destination stream.
public IReadOnlyList<PowerPointClassicComment> GetClassicComments(PowerPointSlide slide) #IReadOnlyList<PowerPointClassicComment>Returns editable classic comments for a slide.
Parameters
- slide OfficeIMO.PowerPoint.PowerPointSlide
public PowerPointCustomShow GetCustomShow(String name) #PowerPointCustomShowFinds a custom show by name using ordinal, case-insensitive matching.
Parameters
- name System.String
public IReadOnlyList<PowerPointGuideInfo> GetGuides() #IReadOnlyList<PowerPointGuideInfo>Returns the current guides defined for slide view.
public Int32 GetLayoutIndex(PowerPointSlideLayoutType layoutType, Int32 masterIndex = 0) #Int32Finds a layout index by layout type.
Parameters
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType
- masterIndex System.Int32 = 0
public Int32 GetLayoutIndex(String layoutName, Int32 masterIndex = 0, Boolean ignoreCase = true) #Int32Finds a layout index by layout name.
Parameters
- layoutName System.String
- masterIndex System.Int32 = 0
- ignoreCase System.Boolean = true
public PowerPointTextBox GetLayoutPlaceholderTextBox(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, Nullable<UInt32> index = null) #PowerPointTextBoxRetrieves a layout placeholder textbox for a master/layout pair.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- index System.Nullable{System.UInt32} = null
public IReadOnlyList<PowerPointModernComment> GetModernComments(PowerPointSlide slide) #IReadOnlyList<PowerPointModernComment>Returns editable modern comments for a slide.
Parameters
- slide OfficeIMO.PowerPoint.PowerPointSlide
public IReadOnlyList<PowerPointSectionInfo> GetSections() #IReadOnlyList<PowerPointSectionInfo>Returns the sections defined in the presentation.
public IReadOnlyList<PowerPointSlideLayoutInfo> GetSlideLayouts(Int32 masterIndex = 0) #IReadOnlyList<PowerPointSlideLayoutInfo>Returns the layouts available for a slide master.
Parameters
- masterIndex System.Int32 = 0
public String GetThemeColor(PowerPointThemeColor color, Int32 masterIndex = 0) #StringGets a theme color value in hex format (e.g. "FF0000").
Parameters
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- masterIndex System.Int32 = 0
public IReadOnlyDictionary<PowerPointThemeColor, String> GetThemeColors(Int32 masterIndex = 0) #IReadOnlyDictionary<PowerPointThemeColor, String>Returns the theme colors that are defined on the master.
Parameters
- masterIndex System.Int32 = 0
public PowerPointThemeFontSet GetThemeFonts(Int32 masterIndex = 0) #PowerPointThemeFontSetGets the major/minor fonts (Latin, East Asian, and complex script).
Parameters
- masterIndex System.Int32 = 0
public PowerPointThemeFontInfo GetThemeLatinFonts(Int32 masterIndex = 0) #PowerPointThemeFontInfoGets the major/minor Latin fonts for the theme.
Parameters
- masterIndex System.Int32 = 0
public Byte[] GetVbaProjectBytes(Int64 maximumBytes = 67108864) #Byte[]Reads the exact embedded VBA compound storage without changing the caller-visible package.
Parameters
- maximumBytes System.Int64 = 67108864
public PowerPointSlide ImportSlide(PowerPointPresentation sourcePresentation, Int32 sourceIndex, Nullable<Int32> insertAt = null) #PowerPointSlideImports a slide from another presentation and inserts it into the current presentation.
Parameters
- sourcePresentation OfficeIMO.PowerPoint.PowerPointPresentation
- Presentation to import from.
- sourceIndex System.Int32
- Index of the slide to import.
- insertAt System.Nullable{System.Int32} = null
- Index where the imported slide should be inserted. Defaults to end.
public PowerPointInspectionReport Inspect(PowerPointInspectionOptions options = null) #PowerPointInspectionReportRuns a coherent set of inspections over the current presentation without changing it.
Parameters
- options OfficeIMO.PowerPoint.PowerPointInspectionOptions = null
public PowerPointAccessibilityReport InspectAccessibility(PowerPointAccessibilityOptions options = null) #PowerPointAccessibilityReportInspects generated or imported slides against a structured accessibility policy.
Parameters
- options OfficeIMO.PowerPoint.PowerPointAccessibilityOptions = null
public PowerPointAnimationReport InspectAnimations() #PowerPointAnimationReportInspects slide timing trees before any animation authoring is attempted.
public PowerPointAnimationReport InspectAnimations(PowerPointAnimationInspectionOptions options) #PowerPointAnimationReportInspects slide timing trees with explicit traversal and result limits.
Parameters
- options OfficeIMO.PowerPoint.PowerPointAnimationInspectionOptions
public PowerPointFeatureReport InspectFeatures() #PowerPointFeatureReportInspects presentation features and reports which ones OfficeIMO can edit, partially edit, preserve, or does not support yet.
public static OfficePackageSignatureInfo InspectPackageSignatures(String filePath, OfficePackageSignatureInspectionOptions options = null) #OfficePackageSignatureInfoInspects a saved PPTX/PPTM package through the shared dependency-light OPC signature engine.
Parameters
- filePath System.String
- options OfficeIMO.Security.OfficePackageSignatureInspectionOptions = null
public PowerPointDeckPreflightReport InspectPreflight(PowerPointDeckPreflightOptions options = null) #PowerPointDeckPreflightReportInspects authored slide bounds, measured text fit, peer collisions, image relationships, and shared visual-snapshot diagnostics without changing the presentation.
Parameters
- options OfficeIMO.PowerPoint.PowerPointDeckPreflightOptions = null
public PowerPointReviewReport InspectReviewComments() #PowerPointReviewReportInspects classic and modern comments without mutating review markup.
public PowerPointSignatureReport InspectSignatures() #PowerPointSignatureReportInspects package signature metadata without mutating it.
public static OfficeVbaSignatureInfo InspectVbaSignatures(String filePath, OfficeVbaSignatureInspectionOptions options = null) #OfficeVbaSignatureInfoInspects legacy, agile, and V3 VBA signature profiles in a saved PPTM/POTM/PPSM package.
Parameters
- filePath System.String
- options OfficeIMO.Security.OfficeVbaSignatureInspectionOptions = null
public PowerPointVisualProofReport InspectVisuals(String sourceKind = "generated") #PowerPointVisualProofReportCreates structural, extraction, accessibility, PNG, SVG, and snapshot proof for every slide.
Parameters
- sourceKind System.String = "generated"
public static PowerPointPresentation Load(String filePath, PowerPointLoadOptions options = null) #PowerPointPresentationLoads an existing presentation into detached memory.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
public static PowerPointPresentation Load(String filePath, PowerPointLoadOptions options, CancellationToken cancellationToken) #PowerPointPresentationLoads an existing presentation into detached memory with cancellation.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions
- cancellationToken System.Threading.CancellationToken
public static PowerPointPresentation Load(Stream stream, PowerPointLoadOptions options = null) #PowerPointPresentationLoads a presentation from a caller-owned stream into memory. Editable writable seekable sources become the associated destination; other sources remain detached.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
public static PowerPointPresentation Load(Stream stream, PowerPointLoadOptions options, CancellationToken cancellationToken) #PowerPointPresentationLoads a presentation from a caller-owned stream into memory with cancellation.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.PowerPointLoadOptions
- cancellationToken System.Threading.CancellationToken
public static async Task<PowerPointPresentation> LoadAsync(String filePath, PowerPointLoadOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentation>Asynchronously loads an existing presentation into detached memory.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static async Task<PowerPointPresentation> LoadAsync(Stream stream, PowerPointLoadOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentation>Asynchronously loads a presentation from a caller-owned stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static PowerPointPresentation LoadEncrypted(String filePath, String password, PowerPointLoadOptions options = null) #PowerPointPresentationLoads a password-encrypted presentation into detached memory.
Parameters
- filePath System.String
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
public static PowerPointPresentation LoadEncrypted(String filePath, String password, PowerPointLoadOptions options, CancellationToken cancellationToken) #PowerPointPresentationLoads a password-encrypted presentation into detached memory with cancellation.
Parameters
- filePath System.String
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions
- cancellationToken System.Threading.CancellationToken
public static PowerPointPresentation LoadEncrypted(Stream stream, String password, PowerPointLoadOptions options = null) #PowerPointPresentationLoads a password-encrypted presentation stream into detached memory.
Parameters
- stream System.IO.Stream
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
public static PowerPointPresentation LoadEncrypted(Stream stream, String password, PowerPointLoadOptions options, CancellationToken cancellationToken) #PowerPointPresentationLoads a password-encrypted presentation stream into detached memory with cancellation.
Parameters
- stream System.IO.Stream
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions
- cancellationToken System.Threading.CancellationToken
public static async Task<PowerPointPresentation> LoadEncryptedAsync(String filePath, String password, PowerPointLoadOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentation>Asynchronously loads a password-encrypted presentation into detached memory.
Parameters
- filePath System.String
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static async Task<PowerPointPresentation> LoadEncryptedAsync(Stream stream, String password, PowerPointLoadOptions options = null, CancellationToken cancellationToken = null) #Task<PowerPointPresentation>Asynchronously loads a password-encrypted presentation stream into detached memory.
Parameters
- stream System.IO.Stream
- password System.String
- options OfficeIMO.PowerPoint.PowerPointLoadOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static PowerPointPresentation LoadLegacyPpt(String path, LegacyPptImportOptions options = null) #PowerPointPresentationLoads a binary `.ppt`, `.pot`, or `.pps` file into the normal editable PowerPoint model.
Parameters
- path System.String
- options OfficeIMO.PowerPoint.LegacyPpt.LegacyPptImportOptions = null
public static PowerPointPresentation LoadLegacyPpt(Stream stream, LegacyPptImportOptions options = null) #PowerPointPresentationLoads a binary PowerPoint stream into the normal editable PowerPoint model.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.LegacyPpt.LegacyPptImportOptions = null
public static LegacyPptLoadResult LoadLegacyPptWithReport(String path, LegacyPptImportOptions options = null) #LegacyPptLoadResultLoads a binary PowerPoint file and returns its projected presentation and import report.
Parameters
- path System.String
- options OfficeIMO.PowerPoint.LegacyPpt.LegacyPptImportOptions = null
public static LegacyPptLoadResult LoadLegacyPptWithReport(Stream stream, LegacyPptImportOptions options = null) #LegacyPptLoadResultLoads a binary PowerPoint stream and returns its projected presentation and import report.
Parameters
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.LegacyPpt.LegacyPptImportOptions = null
public Void MoveSlide(Int32 fromIndex, Int32 toIndex) #VoidMoves a slide from one index to another.
Parameters
- fromIndex System.Int32
- Current index of the slide.
- toIndex System.Int32
- Destination index of the slide.
public Void OpenInApplication(String filePath = null) #VoidOpens the associated presentation in the operating system's registered application.
Parameters
- filePath System.String = null
public IReadOnlyList<PowerPointDeckPlanSlideRenderSummary> PreviewComposition(PowerPointDeckPlan plan, PowerPointCompositionOptions options) #IReadOnlyList<PowerPointDeckPlanSlideRenderSummary>Describes how a semantic plan will resolve without changing this presentation.
Parameters
- plan OfficeIMO.PowerPoint.PowerPointDeckPlan
- options OfficeIMO.PowerPoint.PowerPointCompositionOptions
public Boolean RemoveCustomShow(PowerPointCustomShow customShow) #BooleanRemoves a custom show and actions that target its identifier.
Parameters
- customShow OfficeIMO.PowerPoint.PowerPointCustomShow
public Void RemoveSlide(Int32 index) #VoidRemoves the slide at the specified index.
Parameters
- index System.Int32
- Index of the slide to remove.
public Boolean RemoveVbaProject() #BooleanRemoves the embedded VBA project and its related signature or cache parts.
public PowerPointCustomShow RenameCustomShow(PowerPointCustomShow customShow, String name) #PowerPointCustomShowRenames a custom show while preserving its identifier and linked actions.
Parameters
- customShow OfficeIMO.PowerPoint.PowerPointCustomShow
- name System.String
public Boolean RenameSection(String name, String newName, Boolean ignoreCase = true) #BooleanRenames the first section matching the provided name.
Parameters
- name System.String
- newName System.String
- ignoreCase System.Boolean = true
public Int32 ReplaceText(String oldValue, String newValue, Boolean includeTables = true, Boolean includeNotes = false) #Int32Replaces text across all slides.
Parameters
- oldValue System.String
- newValue System.String
- includeTables System.Boolean = true
- includeNotes System.Boolean = false
public Void Save(String filePath) #VoidSaves the presentation to a file and associates that path with subsequent Save calls.
Parameters
- filePath System.String
public Void Save(String filePath, PowerPointSaveOptions options) #VoidSaves to a file with an explicit conversion-loss policy.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointSaveOptions
public Void Save(Stream destination) #VoidSaves a macro-free PPTX to the provided stream without changing its associated destination. Use the overload accepting PowerPointFileFormat with Pptm to retain VBA.
Parameters
- destination System.IO.Stream
public Void Save(Stream destination, PowerPointFileFormat format, PowerPointSaveOptions options = null) #VoidSaves to a stream using an explicit physical PowerPoint format.
Parameters
- destination System.IO.Stream
- format OfficeIMO.PowerPoint.PowerPointFileFormat
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
public IReadOnlyList<OfficeImageExportResult> SaveAsImages(String folderPath, PowerPointPresentationImageExportOptions options = null) #IReadOnlyList<OfficeImageExportResult>Saves visible presentation slides as PNG files in a folder.
Parameters
- folderPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
public IReadOnlyList<OfficeImageExportResult> SaveAsImages(String folderPath, OfficeImageExportFormat format, PowerPointPresentationImageExportOptions options = null) #IReadOnlyList<OfficeImageExportResult>Saves visible presentation slides as image files in a folder.
Parameters
- folderPath System.String
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
public Task<IReadOnlyList<OfficeImageExportResult>> SaveAsImagesAsync(String folderPath, PowerPointPresentationImageExportOptions options = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<OfficeImageExportResult>>Asynchronously saves visible presentation slides as PNG files in a folder.
Parameters
- folderPath System.String
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task<IReadOnlyList<OfficeImageExportResult>> SaveAsImagesAsync(String folderPath, OfficeImageExportFormat format, PowerPointPresentationImageExportOptions options = null, CancellationToken cancellationToken = null) #Task<IReadOnlyList<OfficeImageExportResult>>Asynchronously saves visible presentation slides as image files in a folder.
Parameters
- folderPath System.String
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Task SaveAsync(CancellationToken cancellationToken = null) #TaskAsynchronously saves to the associated file or stream.
Parameters
- cancellationToken System.Threading.CancellationToken = null
public Task SaveAsync(String filePath, CancellationToken cancellationToken = null) #TaskAsynchronously saves to a file and associates it with subsequent saves.
Parameters
- filePath System.String
- cancellationToken System.Threading.CancellationToken = null
public async Task SaveAsync(String filePath, PowerPointSaveOptions options, CancellationToken cancellationToken = null) #TaskAsynchronously saves to a file with an explicit conversion-loss policy.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointSaveOptions
- cancellationToken System.Threading.CancellationToken = null
public async Task SaveAsync(Stream destination, CancellationToken cancellationToken = null) #TaskAsynchronously saves a macro-free PPTX to a caller-owned stream without changing the associated destination. Use the overload accepting PowerPointFileFormat with Pptm to retain VBA.
Parameters
- destination System.IO.Stream
- cancellationToken System.Threading.CancellationToken = null
public async Task SaveAsync(Stream destination, PowerPointFileFormat format, PowerPointSaveOptions options = null, CancellationToken cancellationToken = null) #TaskAsynchronously saves once to a stream using an explicit physical PowerPoint format.
Parameters
- destination System.IO.Stream
- format OfficeIMO.PowerPoint.PowerPointFileFormat
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
- cancellationToken System.Threading.CancellationToken = null
public Void SaveCopy(String filePath) #VoidSaves an independent copy without changing the presentation's associated destination.
Parameters
- filePath System.String
public Void SaveCopy(String filePath, PowerPointSaveOptions options) #VoidSaves an independent copy with an explicit conversion-loss policy.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointSaveOptions
public Task SaveCopyAsync(String filePath, CancellationToken cancellationToken = null) #TaskAsynchronously saves an independent copy without changing the presentation's associated destination.
Parameters
- filePath System.String
- cancellationToken System.Threading.CancellationToken = null
public async Task SaveCopyAsync(String filePath, PowerPointSaveOptions options, CancellationToken cancellationToken = null) #TaskAsynchronously saves an independent copy with an explicit conversion-loss policy.
Parameters
- filePath System.String
- options OfficeIMO.PowerPoint.PowerPointSaveOptions
- cancellationToken System.Threading.CancellationToken = null
public Void SaveEncrypted(String filePath, String password) #VoidSaves the presentation with password-to-open encryption. PPT/POT/PPS paths use legacy RC4 CryptoAPI for compatibility; Open XML paths use modern package encryption.
Parameters
- filePath System.String
- Destination path for the encrypted presentation.
- password System.String
- Password used to encrypt the presentation package.
public Void SaveEncrypted(String filePath, String password, PowerPointSaveOptions options) #VoidSaves the presentation with password-to-open encryption and explicit binary conversion or RC4 settings.
Parameters
- filePath System.String
- Destination path for the encrypted presentation.
- password System.String
- Password used to encrypt the presentation package.
- options OfficeIMO.PowerPoint.PowerPointSaveOptions
- Binary conversion and RC4 key-size options.
public Void SaveEncrypted(Stream destination, String password) #VoidSaves the presentation with password-to-open encryption to a stream. A presentation loaded from PPT/POT/PPS retains its binary physical format; other presentations use a macro-free PPTX package. Use the overload accepting PowerPointFileFormat with Pptm to retain VBA.
Parameters
- destination System.IO.Stream
- Writable stream receiving the encrypted presentation.
- password System.String
- Password used to encrypt the presentation package.
public Void SaveEncrypted(Stream destination, String password, PowerPointFileFormat format, PowerPointSaveOptions options = null) #VoidSaves a password-encrypted presentation using an explicit physical format.
Parameters
- destination System.IO.Stream
- Writable destination stream.
- password System.String
- Password used to encrypt the presentation.
- format OfficeIMO.PowerPoint.PowerPointFileFormat
- Physical PowerPoint format to write.
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
- Binary conversion and RC4 key-size options.
public Void SetGridSpacing(Int64 xEmus, Int64 yEmus) #VoidSets grid spacing in EMUs.
Parameters
- xEmus System.Int64
- yEmus System.Int64
public Void SetGridSpacingCm(Double xCm, Double yCm) #VoidSets grid spacing in centimeters.
Parameters
- xCm System.Double
- yCm System.Double
public Void SetGridSpacingInches(Double xInches, Double yInches) #VoidSets grid spacing in inches.
Parameters
- xInches System.Double
- yInches System.Double
public Void SetGridSpacingPoints(Double xPoints, Double yPoints) #VoidSets grid spacing in points.
Parameters
- xPoints System.Double
- yPoints System.Double
public Void SetGuides(IEnumerable<PowerPointGuideInfo> guides) #VoidSets the guide list to the provided collection.
Parameters
- guides System.Collections.Generic.IEnumerable{OfficeIMO.PowerPoint.PowerPointGuideInfo}
public Void SetLayoutPlaceholderBounds(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, PowerPointLayoutBox bounds, Nullable<UInt32> index = null, Boolean createIfMissing = false) #VoidSets layout placeholder bounds.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- index System.Nullable{System.UInt32} = null
- createIfMissing System.Boolean = false
public Void SetLayoutPlaceholderTextMarginsCm(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, Double leftCm, Double topCm, Double rightCm, Double bottomCm, Nullable<UInt32> index = null, Boolean createIfMissing = false) #VoidSets layout placeholder text margins in centimeters.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- leftCm System.Double
- topCm System.Double
- rightCm System.Double
- bottomCm System.Double
- index System.Nullable{System.UInt32} = null
- createIfMissing System.Boolean = false
public Void SetLayoutPlaceholderTextMarginsInches(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, Double leftInches, Double topInches, Double rightInches, Double bottomInches, Nullable<UInt32> index = null, Boolean createIfMissing = false) #VoidSets layout placeholder text margins in inches.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- leftInches System.Double
- topInches System.Double
- rightInches System.Double
- bottomInches System.Double
- index System.Nullable{System.UInt32} = null
- createIfMissing System.Boolean = false
public Void SetLayoutPlaceholderTextMarginsPoints(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, Double leftPoints, Double topPoints, Double rightPoints, Double bottomPoints, Nullable<UInt32> index = null, Boolean createIfMissing = false) #VoidSets layout placeholder text margins in points.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- leftPoints System.Double
- topPoints System.Double
- rightPoints System.Double
- bottomPoints System.Double
- index System.Nullable{System.UInt32} = null
- createIfMissing System.Boolean = false
public Void SetLayoutPlaceholderTextStyle(Int32 masterIndex, Int32 layoutIndex, PowerPointPlaceholderType placeholderType, PowerPointTextStyle style, Nullable<UInt32> index = null, Nullable<Int32> level = null, Nullable<Char> bulletChar = null, Nullable<PowerPointNumberingScheme> numbering = null, Boolean createIfMissing = false) #VoidSets layout placeholder text styling and optional bullet settings.
Parameters
- masterIndex System.Int32
- layoutIndex System.Int32
- placeholderType OfficeIMO.PowerPoint.PowerPointPlaceholderType
- style OfficeIMO.PowerPoint.PowerPointTextStyle
- index System.Nullable{System.UInt32} = null
- level System.Nullable{System.Int32} = null
- bulletChar System.Nullable{System.Char} = null
- numbering System.Nullable{OfficeIMO.PowerPoint.PowerPointNumberingScheme} = null
- createIfMissing System.Boolean = false
public Void SetThemeColor(PowerPointThemeColor color, String hexValue, Int32 masterIndex = 0) #VoidSets a theme color value in hex format (e.g. "FF0000").
Parameters
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- hexValue System.String
- masterIndex System.Int32 = 0
public Void SetThemeColorForAllMasters(PowerPointThemeColor color, String hexValue) #VoidSets a theme color value across all masters.
Parameters
- color OfficeIMO.PowerPoint.PowerPointThemeColor
- hexValue System.String
public Void SetThemeColors(IDictionary<PowerPointThemeColor, String> colors, Int32 masterIndex = 0) #VoidSets multiple theme colors at once.
Parameters
- colors System.Collections.Generic.IDictionary{OfficeIMO.PowerPoint.PowerPointThemeColor,System.String}
- masterIndex System.Int32 = 0
public Void SetThemeColorsForAllMasters(IDictionary<PowerPointThemeColor, String> colors) #VoidSets multiple theme colors across all masters.
Parameters
- colors System.Collections.Generic.IDictionary{OfficeIMO.PowerPoint.PowerPointThemeColor,System.String}
public Void SetThemeFonts(PowerPointThemeFontSet fonts, Int32 masterIndex = 0, Boolean keepExistingWhenNull = true) #VoidSets the major/minor fonts (Latin, East Asian, and complex script).
Parameters
- fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet
- masterIndex System.Int32 = 0
- keepExistingWhenNull System.Boolean = true
public Void SetThemeFontsForAllMasters(PowerPointThemeFontSet fonts, Boolean keepExistingWhenNull = true) #VoidSets the major/minor fonts (Latin, East Asian, and complex script) across all masters.
Parameters
- fonts OfficeIMO.PowerPoint.PowerPointThemeFontSet
- keepExistingWhenNull System.Boolean = true
public Void SetThemeLatinFonts(String majorLatin, String minorLatin, Int32 masterIndex = 0) #VoidSets the major/minor Latin fonts for the theme.
Parameters
- majorLatin System.String
- minorLatin System.String
- masterIndex System.Int32 = 0
public Void SetThemeLatinFontsForAllMasters(String majorLatin, String minorLatin) #VoidSets the major/minor Latin fonts across all masters.
Parameters
- majorLatin System.String
- minorLatin System.String
public Void SetThemeNameForAllMasters(String name) #VoidSets the theme name across all masters.
Parameters
- name System.String
public Void SetVbaProject(Stream project, Int64 maximumBytes = 67108864) #VoidAdds or replaces the embedded VBA project from a complete, valid compound storage.
Parameters
- project System.IO.Stream
- maximumBytes System.Int64 = 67108864
public Void SetVbaProject(Byte[] project, Int64 maximumBytes = 67108864) #VoidAdds or replaces the embedded VBA project from a complete, valid compound storage.
Parameters
- project System.Byte[]
- maximumBytes System.Int64 = 67108864
public static OfficePackageSigningResult SignPackageSignature(String filePath, IOfficeSecurityProvider securityProvider, X509Certificate2 signingCertificate, OfficePackageSigningOptions options = null) #OfficePackageSigningResultCreates and validates an OPC signature in a saved PPTX/PPTM package.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.OfficePackageSigningOptions = null
public static OfficeVbaSigningResult SignVbaProject(String filePath, IOfficeSecurityProvider securityProvider, X509Certificate2 signingCertificate, OfficeVbaSigningOptions options = null, IEnumerable<X509Certificate2> certificateChain = null) #OfficeVbaSigningResultCreates and atomically validates legacy, agile, and V3 VBA signatures.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.OfficeVbaSigningOptions = null
- certificateChain System.Collections.Generic.IEnumerable{System.Security.Cryptography.X509Certificates.X509Certificate2} = null
public Byte[] ToBytes() #Byte[]Encodes the presentation as a macro-free PPTX package. Use PowerPointSaveOptions) with Pptm to retain VBA.
public Byte[] ToBytes(PowerPointFileFormat format, PowerPointSaveOptions options = null) #Byte[]Encodes the presentation in the requested PowerPoint format.
Parameters
- format OfficeIMO.PowerPoint.PowerPointFileFormat
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
public Byte[] ToEncryptedBytes(String password, PowerPointFileFormat format = Pptx, PowerPointSaveOptions options = null) #Byte[]Encodes a password-encrypted presentation in the requested physical format.
Parameters
- password System.String
- Password used to encrypt the presentation.
- format OfficeIMO.PowerPoint.PowerPointFileFormat = Pptx
- Physical PowerPoint format to encode.
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
- Binary conversion and RC4 key-size options.
Returns
The complete encrypted package bytes.
public PowerPointPresentationImageExportBuilder ToImages() #PowerPointPresentationImageExportBuilderStarts a fluent image export for selected slides in this presentation.
public PowerPointPresentationImageExportBuilder ToImages(PowerPointPresentationImageExportOptions options) #PowerPointPresentationImageExportBuilderStarts a fluent batch export using a cloned options snapshot.
Parameters
- options OfficeIMO.PowerPoint.PowerPointPresentationImageExportOptions
public MemoryStream ToStream() #MemoryStreamEncodes the presentation as a macro-free PPTX in a new writable memory stream positioned at the beginning. Use PowerPointSaveOptions) with Pptm to retain VBA.
public MemoryStream ToStream(PowerPointFileFormat format, PowerPointSaveOptions options = null) #MemoryStreamEncodes the presentation in a new stream using the requested format.
Parameters
- format OfficeIMO.PowerPoint.PowerPointFileFormat
- options OfficeIMO.PowerPoint.PowerPointSaveOptions = null
public Boolean TryGetCompatibilitySourcePayload(out OfficeCompatibilitySourcePayload payload, out String error) #BooleanTries to read an original source retained by a compatibility conversion.
Parameters
- payload OfficeIMO.OfficeCompatibilitySourcePayload@
- error System.String@
public static OfficePackageSigningResult TrySignPackageSignature(String filePath, IOfficeSecurityProvider securityProvider, X509Certificate2 signingCertificate, OfficePackageSigningOptions options = null) #OfficePackageSigningResultAttempts OPC signature creation without throwing for an ordinary signing failure.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.OfficePackageSigningOptions = null
public static OfficeVbaSigningResult TrySignVbaProject(String filePath, IOfficeSecurityProvider securityProvider, X509Certificate2 signingCertificate, OfficeVbaSigningOptions options = null, IEnumerable<X509Certificate2> certificateChain = null) #OfficeVbaSigningResultAttempts atomic VBA signing and returns structured failure evidence.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.OfficeVbaSigningOptions = null
- certificateChain System.Collections.Generic.IEnumerable{System.Security.Cryptography.X509Certificates.X509Certificate2} = null
public List<OfficeOpenXmlValidationError> ValidateDocument(OfficeOpenXmlFileFormatVersion fileFormatVersion = Microsoft365) #List<OfficeOpenXmlValidationError>Validates the presentation using the specified file format version.
Parameters
- fileFormatVersion OfficeIMO.OfficeOpenXmlFileFormatVersion = Microsoft365
- File format version to validate against.
Returns
List of validation errors.
Examples
using (var presentation = PowerPointPresentation.Create("test.pptx")) {
var errors = presentation.ValidateDocument();
if (errors.Count > 0) {
// Handle validation errors
}
}
public static OfficePackageSignatureValidationReport ValidatePackageSignatures(String filePath, IOfficeSecurityProvider securityProvider, OfficePackageSignatureValidationOptions options = null) #OfficePackageSignatureValidationReportValidates a saved PPTX/PPTM package through an explicitly supplied security provider.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- options OfficeIMO.Security.OfficePackageSignatureValidationOptions = null
public static OfficeVbaSignatureValidationResult ValidateVbaSignatures(String filePath, IOfficeSecurityProvider securityProvider, OfficeVbaSignatureInspectionOptions options = null) #OfficeVbaSignatureValidationResultValidates VBA CMS, trust, timestamp, and Office SIP content binding.
Parameters
- filePath System.String
- securityProvider OfficeIMO.Security.IOfficeSecurityProvider
- options OfficeIMO.Security.OfficeVbaSignatureInspectionOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public IReadOnlyList<PowerPointCustomShow> CustomShows { get; } #Gets the custom shows in package order.
public String FilePath { get; } #Gets the destination path associated with the presentation, if any.
public PresentationDocument OpenXmlDocument { get; } #Gets the underlying Open XML package for advanced integration scenarios.
public DocumentPersistenceMode PersistenceMode { get; } #Gets the configured persistence behavior.
public DocumentAccessMode AccessMode { get; } #Gets whether the presentation is editable or read-only.
public IReadOnlyList<PowerPointSlide> Slides { get; } #Collection of slides in the presentation.
public PowerPointBuiltinDocumentProperties BuiltinDocumentProperties { get; } #Built-in package properties for the presentation.
public PowerPointApplicationProperties ApplicationProperties { get; } #Extended application properties for the presentation.
public PowerPointSlideSize SlideSize { get; } #Slide size information for the presentation.
public PowerPointFileFormat SourceFormat { get; set; } #Gets the detected physical format of the presentation source.
public OfficeFormatDescriptor SourceFormatDescriptor { get; } #Gets the concrete source format, including modern template, slideshow, add-in, and macro variants.
public String SourcePath { get; } #Gets the original legacy source path, or the current Open XML file association.
public IReadOnlyList<LegacyPptImportDiagnostic> LegacyPptImportDiagnostics { get; } #Gets diagnostics produced while importing a legacy binary presentation.
public Boolean HasVbaProject { get; } #Gets whether the presentation contains a VBA project.
public String ThemeName { get; set; } #Gets or sets the name of the presentation theme.
public IReadOnlyList<PowerPointTableStyleInfo> TableStyles { get; } #Gets the list of table styles available in the presentation.
public Boolean DocumentIsValid { get; } #Indicates whether the presentation passes Open XML validation.
public List<OfficeOpenXmlValidationError> DocumentValidationErrors { get; } #Gets the list of validation errors for the presentation.
public Boolean SnapToGrid { get; set; } #Gets or sets whether slide view snapping uses the grid.
public Int64 GridSpacingXEmus { get; set; } #Horizontal grid spacing in EMUs.
public Int64 GridSpacingYEmus { get; set; } #Vertical grid spacing in EMUs.
public OfficeSignatureMutationPolicy SignatureMutationPolicy { get; set; } #Signature policy applied before save. The safe default blocks mutation of signed packages.
Fields
public const Int64 DefaultMaximumVbaProjectBytes #Default maximum VBA project size accepted by the public mutation API.
67108864Extension Methods
public static IEnumerable<PowerPointExtractChunk> ExtractMarkdownChunks(PowerPointPresentation presentation, PowerPointExtractOptions extract = null, PowerPointExtractChunkingOptions chunking = null, String sourcePath = null, CancellationToken cancellationToken = null) #IEnumerable<PowerPointExtractChunk>Extracts a presentation into slide-aligned chunks (one chunk per slide by default).
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- extract OfficeIMO.PowerPoint.PowerPointExtractionExtensions.PowerPointExtractOptions = null
- chunking OfficeIMO.PowerPoint.PowerPointExtractChunkingOptions = null
- sourcePath System.String = null
- cancellationToken System.Threading.CancellationToken = null