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.
This class provides 7 methods for working with DocumentProperties objects in .NET programs.
Available methods include: ClearBuiltInProperties, ClearCustomProperties, ContainsCustomProperty, GetCustomPropertyName, GetCustomPropertyValue, RemoveCustomProperty, SetCustomPropertyValue.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AppVersion, ApplicationTemplate, Author, Category, Comments, Company, and 28 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Title | string | Read/Write | Gets or sets the title. |
Subject | string | Read/Write | Gets or sets the subject. |
Author | string | Read/Write | Gets or sets the author. |
Keywords | string | Read/Write | Gets or sets the keywords. |
Comments | string | Read/Write | Gets or sets the comments. |
Category | string | Read/Write | Gets or sets the category. |
ContentStatus | string | Read/Write | Gets or sets the content status. |
ContentType | string | Read/Write | Gets or sets the content type. |
LastSavedBy | string | Read/Write | Gets or sets the last saved by. |
RevisionNumber | int | Read/Write | Gets or sets the revision number. |
CreatedTime | DateTime? | Read/Write | Gets or sets the created time. |
LastSavedTime | DateTime? | Read/Write | Gets or sets the last saved time. |
LastPrinted | DateTime? | Read/Write | Gets or sets the last printed. |
AppVersion | string | Read | Gets the app version. |
NameOfApplication | string | Read/Write | Gets or sets the name of application. |
Company | string | Read/Write | Gets or sets the company. |
Manager | string | Read/Write | Gets or sets the manager. |
PresentationFormat | string | Read/Write | Gets or sets the presentation format. |
ApplicationTemplate | string | Read/Write | Gets or sets the application template. |
HyperlinkBase | string | Read/Write | Gets or sets the hyperlink base. |
TotalEditingTime | TimeSpan | Read/Write | Gets or sets the total editing time. |
SharedDoc | bool | Read/Write | Gets or sets the shared doc. |
ScaleCrop | bool | Read/Write | Gets or sets the scale crop. |
LinksUpToDate | bool | Read/Write | Gets or sets the links up to date. |
HyperlinksChanged | bool | Read/Write | Gets or sets the hyperlinks changed. |
Slides | int | Read | Gets the slides. |
HiddenSlides | int | Read | Gets the hidden slides. |
Notes | int | Read | Gets the notes. |
Paragraphs | int | Read | Gets the paragraphs. |
Words | int | Read | Gets the words. |
MultimediaClips | int | Read | Gets the multimedia clips. |
HeadingPairs | IReadOnlyList<IHeadingPair> | Read | Gets the heading pairs. |
TitlesOfParts | IReadOnlyList<string> | Read | Gets the titles of parts. |
CountOfCustomProperties | int | Read | Gets the count of custom properties. |
Methods
| Signature | Description |
|---|---|
GetCustomPropertyValue(name: string) | Returns the value of the custom property with the given name |
SetCustomPropertyValue(name: string, value: object) | Sets the custom property value 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 |