CorePropertiesPart
Overview
CorePropertiesPart is a class in Aspose.Slides FOSS for .NET.
Parses and serializes docProps/core.xml (Dublin Core metadata). Handles: title, subject, creator (author), keywords, description (comments), category, contentStatus, contentType, lastModifiedBy, revision, created, modified, lastPrinted.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Title | string? | Read/Write | Gets or sets the document title. |
Subject | string? | Read/Write | Gets or sets the document subject. |
Creator | string? | Read/Write | Gets or sets the document creator (author). |
Keywords | string? | Read/Write | Gets or sets the document keywords. |
Description | string? | Read/Write | Gets or sets the document description (comments). |
Category | string? | Read/Write | Gets or sets the document category. |
ContentStatus | string? | Read/Write | Gets or sets the content status. |
ContentType | string? | Read/Write | Gets or sets the content type. |
LastModifiedBy | string? | Read/Write | Gets or sets the last modified by user. |
Revision | string? | Read/Write | Gets or sets the revision number. |
Created | DateTime? | Read/Write | Gets or sets the creation date. |
Modified | DateTime? | Read/Write | Gets or sets the last modified date. |
LastPrinted | DateTime? | Read/Write | Gets or sets the last printed date. |
PartName | string | Read | Gets the OPC part name for the core properties XML |
Methods
| Signature | Description |
|---|---|
Parse() | Parses the docProps/core.xml part from the package. |
GetText(tag: XName) | The text content, or null if not found or empty. |
MarkDirty() | Marks the part as dirty so it will be serialized on save. |
Save() | Serializes the core properties back to the OPC package. |
SetDc(root: XElement, localName: string, value: string?) | The text value, or null to skip. |
SetCp(root: XElement, localName: string, value: string?) | The text value, or null to skip. |
SetDctermsDate(root: XElement, localName: string, dt: DateTime?) | The datetime value, or null to skip. |
Clear() | Resets all properties to null. |
ParseW3cdtf(text: string?) | The parsed , or null if the input is null, empty, or invalid. |
FormatW3cdtf(dt: DateTime?) | The W3CDTF string, or null if the input is null. |