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.

This class provides 10 methods for working with CorePropertiesPart objects in .NET programs. Available methods include: Clear, FormatW3cdtf, GetText, MarkDirty, Parse, ParseW3cdtf, Save, SetCp, SetDc, SetDctermsDate. All exported members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package. Properties: Category, ContentStatus, ContentType, Created, Creator, Description, and 8 more.

Description

CorePropertiesPart is a class in the Aspose.Slides FOSS library for .NET that exposes 10 methods and 14 properties for programmatic use.

The class also provides the PartName property (gets the part name).

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 part name.

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