Edit POT Properties using C#
Build .NET apps that read and modify built-in and custom presentation properties with server-side APIs.
Modify POT 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 POT metadata.
Modify POT Built-in Properties - C#
using var presentation = new Presentation("presentation.pot");
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.pot", SaveFormat.Pot);Add Custom Properties to POT - 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.pot", SaveFormat.Pot);How to View or Edit POT Metadata using C#
Follow these steps to view or edit POT metadata.
- Load the POT 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.
Built with Aspose.Slides
View and Edit POT Metadata Online
The free Aspose.Slides Metadata app is built with Aspose.Slides for .NET, the same API as the code above. Open it and see what the API can do with your own POT files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides reads and writes properties before you write code.
- View and edit built-in and custom properties of your POT file.
- Save and download the updated file.
Other Supported Metadata Formats
Using C#, you can also manage metadata in the following formats.