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
| Name | Type | Access | Description |
|---|---|---|---|
Application | string? | Read/Write | Gets or sets the application name. |
AppVersion | string? | Read/Write | Gets or sets the application version. |
Company | string? | Read/Write | Gets or sets the company name. |
Manager | string? | Read/Write | Gets or sets the manager name. |
PresentationFormat | string? | Read/Write | Gets or sets the presentation format. |
Template | string? | Read/Write | Gets or sets the template name. |
HyperlinkBase | string? | Read/Write | Gets or sets the hyperlink base URI. |
TotalTime | int? | Read/Write | Gets or sets the total editing time in minutes. |
Slides | int? | Read/Write | Gets or sets the number of slides. |
HiddenSlides | int? | Read/Write | Gets or sets the number of hidden slides. |
Notes | int? | Read/Write | Gets or sets the number of notes pages. |
Paragraphs | int? | Read/Write | Gets or sets the number of paragraphs. |
Words | int? | Read/Write | Gets or sets the number of words. |
MmClips | int? | Read/Write | Gets or sets the number of multimedia clips. |
ScaleCrop | bool? | Read/Write | Gets or sets whether the thumbnail is cropped to fit. |
LinksUpToDate | bool? | Read/Write | Gets or sets whether links are up to date. |
SharedDoc | bool? | Read/Write | Gets or sets whether this is a shared document. |
HyperlinksChanged | bool? | Read/Write | Gets or sets whether hyperlinks have changed. |
HeadingPairs | List<HeadingPairData> | Read/Write | Gets the list of heading pairs. |
TitlesOfParts | List<string> | Read/Write | Gets the list of part titles. |
PartName | string | Read | Gets the OPC part name for the app properties XML |
Methods
| Signature | Description |
|---|---|
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. |