OpcPackage — Aspose.Slides FOSS C# (.NET) API Reference
OpcPackage — OpcPackage API type.
Package: Aspose.Slides.Foss
Properties
| Property | Type | Access | Description |
|---|---|---|---|
SourcePath | string? | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
Open(string path) | void | If the file does not exist. |
Open(Stream stream) | void | A loaded instance. |
CreateNew() | void | A new empty instance. |
Save(string path) | void | Destination file path. |
Save(Stream stream) | void | Destination writable stream. |
GetPart(string partName) | void | Part content as a byte array, or null if the part does not exist. |
SetPart(string partName, byte[] content) | void | Part content as bytes. |
SetPart(string partName, string content) | void | Part content as a string. |
HasPart(string partName) | void | true if the part exists; otherwise, false. |
DeletePart(string partName) | void | true if the part was deleted; false if it did not exist. |
GetPartNames() | void | A list of part paths. |
Close() | void |