ContentTypesManager

General

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

Gestiona el fitxer [Content_Types].xml en un paquet OPC. Proporciona mètodes per analitzar els tipus de contingut existents, afegir anàlisis i extensions predeterminades, consultar tipus d’interiors de parts i tornar a la serialització XML.

Propietats

NameTypeAccessDescription
PartNamestringReadGets or sets the name of the part being managed

Mètodes

SignatureDescription
Load()Loads and parses the [Content_Types].xml from the package. If the part does not exist, creates a minimal structure with default extensions for .rels and .xml .
AddDefaultExtension(extension: string, contentType: string)The MIME content type to associate with the extension.
AddOverride(partName: string, contentType: string)The MIME content type.
RemoveOverride(partName: string)true if the override was removed; false if it did not exist.
GetContentType(partName: string)The content type string, or null if not found.
Save()Saves the content types back to the package as a well-formed XML document.
 Català