Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/files/Styles.ts>Styles#add

TypeScript library for parsing and building a DOCXML file
Go to Latest
method Styles.prototype.add
import { Styles } from "https://deno.land/x/docxml@5.2.0/src/files/Styles.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; }