Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/mod.ts>StylesXml#add

TypeScript (component) library for building and parsing a DOCX file
Latest
method StylesXml.prototype.add
import { StylesXml } from "https://deno.land/x/docxml@5.15.3/mod.ts";

Add a custom style to the available style palette. If it does not have an identifier already, the system will propose an identifier based on the style name, or create a unique GUID. This method throws when the identifier is not unique.

Parameters

properties: Omit<AnyStyleDefinition, "id"> & { id?: string; }