DocumentProperties
Overview
DocumentProperties is a class in Aspose.Slides FOSS for .NET.
Inherits from: IDocumentProperties.
Represents the metadata properties of a presentation, wrapping OPC core, app, and custom property parts with lazy initialization.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Title | string | Read/Write | Gets or sets the presentation title |
Subject | string | Read/Write | |
Author | string | Read/Write | Gets or sets the name of the presentation author |
Keywords | string | Read/Write | Gets or sets a comma‑separated list of keywords for the presentation |
Comments | string | Read/Write | Gets or sets comments associated with the presentation |
Category | string | Read/Write | |
ContentStatus | string | Read/Write | Gets or sets the status of the presentation content |
ContentType | string | Read/Write | Gets or sets the MIME content type of the presentation |
LastSavedBy | string | Read/Write | Gets or sets the name of the user who last saved the presentation |
RevisionNumber | int | Read/Write | Gets or sets the integer revision count of the presentation |
CreatedTime | DateTime? | Read/Write | Gets or sets the creation timestamp; null if not set |
LastSavedTime | DateTime? | Read/Write | Gets or sets the last saved timestamp; null if not set |
LastPrinted | DateTime? | Read/Write | |
AppVersion | string | Read | Gets or sets the version of the application that created the file |
NameOfApplication | string | Read/Write | |
Company | string | Read/Write | |
Manager | string | Read/Write | Gets or sets the manager name for the presentation |
PresentationFormat | string | Read/Write | Gets or sets a description of the presentation format |
ApplicationTemplate | string | Read/Write | Gets or sets the name of the template used to create the presentation |
HyperlinkBase | string | Read/Write | Gets or sets the base URL for relative hyperlinks in the presentation |
TotalEditingTime | TimeSpan | Read/Write | Gets or sets the cumulative editing time as a TimeSpan |
SharedDoc | bool | Read/Write | Gets or sets a flag indicating whether the presentation is shared |
ScaleCrop | bool | Read/Write | Gets or sets a flag indicating whether images are scaled and cropped |
LinksUpToDate | bool | Read/Write | Gets or sets a flag indicating whether external links are up‑to‑date |
HyperlinksChanged | bool | Read/Write | Gets or sets a flag indicating whether hyperlinks have been modified |
Slides | int | Read | Gets the total number of slides in the presentation |
HiddenSlides | int | Read | Gets the count of slides that are hidden |
Notes | int | Read | |
Paragraphs | int | Read | Gets the total number of paragraphs across all slides |
Words | int | Read | Gets the total word count across the entire presentation |
MultimediaClips | int | Read | |
HeadingPairs | IReadOnlyList<IHeadingPair> | Read | |
TitlesOfParts | IReadOnlyList<string> | Read | |
CountOfCustomProperties | int | Read |
Methods
| Signature | Description |
|---|---|
GetCustomPropertyValue(name: string) | Returns the value of the custom property with the given name |
SetCustomPropertyValue(name: string, value: object) | Sets or adds a custom property with the specified name and value |
GetCustomPropertyName(index: int) | Returns the name of the custom property at the given index |
RemoveCustomProperty(name: string) | Deletes the custom property identified by the given name |
ContainsCustomProperty(name: string) | Returns true if a custom property with the specified name exists |
ClearCustomProperties() | Removes all custom properties from the document |
ClearBuiltInProperties() | Resets all built‑in document properties to their default values |