The DocumentProperties class provides access to all document metadata — core properties (title, author, subject), application properties (app version, company), and custom properties. Access it via Presentation.DocumentProperties.
Package: Aspose.Slides.Foss (net9.0)
Properties
Core Properties
| Property | Type | Access | Description |
|---|
Title | string | Read | Document title. |
Subject | string | Read | Document subject. |
Author | string | Read | Author name. |
Keywords | string | Read | Keywords/tags. |
Comments | string | Read | Comments metadata. |
Category | string | Read | Document category. |
ContentStatus | string | Read | Content status. |
ContentType | string | Read | Content type. |
CreatedTime | DateTime? | Read | Creation date/time. |
LastSavedTime | DateTime? | Read | Last save date/time. |
LastSavedBy | string | Read | Last saved by. |
LastPrinted | DateTime? | Read | Last printed date/time. |
RevisionNumber | int | Read | Revision number. |
Application Properties
| Property | Type | Access | Description |
|---|
AppVersion | string | Read | Application version. |
NameOfApplication | string | Read | Creating application name. |
Company | string | Read | Company name. |
Manager | string | Read | Manager name. |
PresentationFormat | string | Read | Presentation format description. |
ApplicationTemplate | string | Read | Template name. |
HyperlinkBase | string | Read | Base URL for relative hyperlinks. |
TotalEditingTime | TimeSpan | Read | Total editing time. |
SharedDoc | bool | Read | Whether the document is shared. |
Statistics
| Property | Type | Access | Description |
|---|
Slides | int | Read | Number of slides. |
HiddenSlides | int | Read | Number of hidden slides. |
Notes | int | Read | Number of notes. |
Paragraphs | int | Read | Number of paragraphs. |
Words | int | Read | Number of words. |
MultimediaClips | int | Read | Number of multimedia clips. |
Custom Properties
| Property | Type | Access | Description |
|---|
CountOfCustomProperties | int | Read | Number of custom properties. |
Methods
| Method | Returns | Description |
|---|
GetCustomPropertyValue(string name) | object | Get a custom property value by name. |
SetCustomPropertyValue(string name, object value) | void | Set a custom property value. |
GetCustomPropertyName(int index) | string | Get custom property name by index. |
RemoveCustomProperty(string name) | void | Remove a custom property. |
ContainsCustomProperty(string name) | bool | Check if a custom property exists. |
ClearCustomProperties() | void | Remove all custom properties. |
ClearBuiltInProperties() | void | Reset all built-in properties. |
Usage Examples
Read Document Properties
Set Document Properties
Custom Properties
See Also