CorePropertiesPart

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

NameTypeAccessDescription
Titlestring?Read/WriteGets or sets the document title.
Subjectstring?Read/WriteGets or sets the document subject.
Creatorstring?Read/WriteGets or sets the document creator (author).
Keywordsstring?Read/WriteGets or sets the document keywords.
Descriptionstring?Read/WriteGets or sets the document description (comments).
Categorystring?Read/WriteGets or sets the document category.
ContentStatusstring?Read/WriteGets or sets the content status.
ContentTypestring?Read/WriteGets or sets the content type.
LastModifiedBystring?Read/WriteGets or sets the last modified by user.
Revisionstring?Read/WriteGets or sets the revision number.
CreatedDateTime?Read/WriteGets or sets the creation date.
ModifiedDateTime?Read/WriteGets or sets the last modified date.
LastPrintedDateTime?Read/WriteGets or sets the last printed date.
PartNamestringReadGets the OPC part name for the core properties XML

Methods

SignatureDescription
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.

See Also