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

x/docxml/src/properties/text-properties.ts>TextProperties

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
type alias TextProperties
import { type TextProperties } from "https://deno.land/x/docxml@5.3.3/src/properties/text-properties.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"
; isBold?: boolean | null; isItalic?: boolean | null; isCaps?: boolean | null; isSmallCaps?: boolean | null; language?: string | null; fontSize?: Length | null; isStrike?: boolean | null; spacing?: Length | null; font?: string | { cs?: string | null; ascii?: string | null; hAnsi?: string | null; } | null; }