Skip to main content
Module

x/docxml/mod.ts>TextProperties

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
type alias TextProperties
import { type TextProperties } from "https://deno.land/x/docxml@4.0.7/mod.ts";

All the formatting options that can be given on a text run (inline text).

Serializes to the <w:rPr> element. https://c-rex.net/projects/samples/ooxml/e1/Part4/OOXML_P4_DOCX_rPr_topic_ID0EIEKM.html

definition: { style?: string | null; color?: string | null; verticalAlign?:
| "baseline"
| "subscript"
| "superscript"
| null
; isUnderlined?:
| null
| boolean
| "single"
| "words"
| "double"
| "thick"
| "dotted"
| "dottedHeavy"
| "dash"
| "dashedHeavy"
| "dashLong"
| "dashLongHeavy"
| "dotDash"
| "dashDotHeavy"
| "dotDotDash"
| "dashDotDotHeavy"
| "wave"
| "wavyHeavy"
| "wavyDouble"
| "none"
| null
; isBold?: boolean | null; isItalic?: boolean | null; isSmallCaps?: boolean | null; language?: string | null; fontSize?: Length | null; }