AppPropertiesPart

AppPropertiesPart

Overview

AppPropertiesPart is a class in Aspose.Slides FOSS for .NET.

Parses and serializes docProps/app.xml (extended properties) in an OPC package. Handles: Application, AppVersion, Company, Manager, PresentationFormat, Template, TotalTime, Slides, HiddenSlides, Notes, Paragraphs, Words, MMClips, ScaleCrop, LinksUpToDate, SharedDoc, HyperlinksChanged, HyperlinkBase, HeadingPairs, TitlesOfParts.

Properties

NameTypeAccessDescription
Applicationstring?Read/WriteGets or sets the application name.
AppVersionstring?Read/WriteGets or sets the application version.
Companystring?Read/WriteGets or sets the company name.
Managerstring?Read/WriteGets or sets the manager name.
PresentationFormatstring?Read/WriteGets or sets the presentation format.
Templatestring?Read/WriteGets or sets the template name.
HyperlinkBasestring?Read/WriteGets or sets the hyperlink base URI.
TotalTimeint?Read/WriteGets or sets the total editing time in minutes.
Slidesint?Read/WriteGets or sets the number of slides.
HiddenSlidesint?Read/WriteGets or sets the number of hidden slides.
Notesint?Read/WriteGets or sets the number of notes pages.
Paragraphsint?Read/WriteGets or sets the number of paragraphs.
Wordsint?Read/WriteGets or sets the number of words.
MmClipsint?Read/WriteGets or sets the number of multimedia clips.
ScaleCropbool?Read/WriteGets or sets whether the thumbnail is cropped to fit.
LinksUpToDatebool?Read/WriteGets or sets whether links are up to date.
SharedDocbool?Read/WriteGets or sets whether this is a shared document.
HyperlinksChangedbool?Read/WriteGets or sets whether hyperlinks have changed.
HeadingPairsList<HeadingPairData>Read/WriteGets the list of heading pairs.
TitlesOfPartsList<string>Read/WriteGets the list of part titles.
PartNamestringReadGets the OPC part name for the app properties XML

Methods

SignatureDescription
Parse()Parses the docProps/app.xml part from the package.
GetText(localName: string)The text content, or null if not found or empty.
GetInt(localName: string)The parsed integer, or null if not found or not a valid integer.
GetBool(localName: string)The parsed boolean, or null if not found.
ParseHeadingPairs()Parses HeadingPairs from the vt:vector element. Pairs come as alternating (name_variant, count_variant) entries.
ParseTitlesOfParts()Parses TitlesOfParts from the vt:vector element.
MarkDirty()Marks the part as dirty so it will be serialized on save.
Save()Serializes the app properties back to the OPC package.
SetText(root: XElement, localName: string, value: string?)The text value, or null to skip.
SetInt(root: XElement, localName: string, value: int?)The integer value, or null to skip.
SetBool(root: XElement, localName: string, value: bool?)The boolean value, or null to skip.
WriteHeadingPairs(root: XElement)The root element to add to.
WriteTitlesOfParts(root: XElement)The root element to add to.
Clear()Resets all properties to null/empty.

See Also