class ContentTypesXml
extends XmlFile
import { ContentTypesXml } from "https://deno.land/x/docxml@5.15.3/src/files/ContentTypesXml.ts";
Methods
protected
toNode(): DocumentaddDefault(extension: string, contentType: FileMime): void
Add a default content type association for a file extension.
addDefaults(defaults: Array<ContentTypeDefault>): void
Add multiple default content type/file extension associations. Useful for cloning an existing content type register.
addOverride(partName: string, contentType: FileMime)
Static Methods
fromArchive(archive: Archive, location: string)
Instantiate this class by looking at the DOCX XML for it.