Skip to main content
Module

x/docxml/mod.ts>StylesXml#add

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
method StylesXml.prototype.add
import { StylesXml } from "https://deno.land/x/docxml@5.9.0/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; }