PPT
PPTX
ODP
POT
PPTX
PPTX
Edit PPTX Properties using C#
Build .NET apps that read and modify built-in and custom presentation properties with server-side APIs.
Modify PPTX Properties via C#
Using
Aspose.Slides for .NET
, developers can access and modify built-in and custom presentation properties. Use the
DocumentProperties
property exposed by a Presentation object to read and update PPTX metadata.
Modify PPTX Built-in Properties - C#
using var presentation = new Presentation("presentation.pptx");
var documentProperties = presentation.DocumentProperties;
documentProperties.Author = "Aspose.Slides for .NET";
documentProperties.Title = "Modifying Presentation Properties";
documentProperties.Subject = "Aspose Subject";
documentProperties.Comments = "Aspose Description";
documentProperties.Manager = "Aspose Manager";
presentation.Save("DocumentProperties_out.pptx", SaveFormat.Pptx);
Add Custom Properties to PPTX - C#
using var presentation = new Presentation();
var documentProperties = presentation.DocumentProperties;
documentProperties["New Custom"] = 12;
documentProperties["My Name"] = "Aspose Metadata Editor";
documentProperties["Custom"] = 124;
var propertyName = documentProperties.GetCustomPropertyName(2);
documentProperties.RemoveCustomProperty(propertyName);
presentation.Save("CustomDocumentProperties_out.pptx", SaveFormat.Pptx);
How to View or Edit PPTX Metadata using C#
Follow these steps to view or edit PPTX metadata.
Load the PPTX file with
Presentation.Get the
DocumentPropertiesobject from the presentation.Read or update built-in properties such as
Author,Title, andSubject.Access and modify custom properties with
DocumentProperties.