CustomPropertiesPart

General

CustomPropertiesPart és una classe en Aspose.Slides per NET.

Parseja i serialitza docProps/custom.xml. Cada propietat personalitzada s’emmagatzema amb un valor digitat (string, int, double, bool o DateTime). Els PID comencen en 2. El fitxer es crea a petició només quan s ‘afegeixen propietats personalitzades.

Propietats

NameTypeAccessDescription
CountintReadGets the number of custom properties stored
PartNamestringReadGets the part name (path) of the custom properties XML

Mètodes

SignatureDescription
Contains(name: string)true if the property exists; otherwise, false.
Parse()Parses the docProps/custom.xml part from the package.
ReadValue(propEl: XElement)The typed value, or null if no recognized value type is found.
ParseFiletime(text: string?)The parsed , or null if the input is null, empty, or invalid.
GetName(index: int)Thrown when the index is out of range.
GetValue(name: string)The property value, or null if not found.
SetValue(name: string, value: object)The property value (string, int, double, bool, or DateTime).
Remove(name: string)true if the property was removed; false if it did not exist.
Clear()Removes all custom properties.
Save()Serializes the custom properties back to the OPC package. Only writes if properties have been modified. Removes the part if no properties remain.
WriteValue(propEl: XElement, value: object)The typed value to write.
EnsureContentType()Ensures [Content_Types].xml has an override entry for docProps/custom.xml.
EnsureRelationship()Ensures _rels/.rels has a relationship entry for docProps/custom.xml.
 Català