Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.12.0/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 | SimpleOrComplex<boolean> | null; isItalic?: boolean | SimpleOrComplex<boolean> | null; isCaps?: boolean | null; isSmallCaps?: boolean | null; language?: string | null; fontSize?: Length | SimpleOrComplex<Length> | null; minimumKerningFontSize?: Length | null; isStrike?: boolean | null; spacing?: Length | null; font?: string | { cs?: string | null; ascii?: string | null; hAnsi?: string | null; } | null; }