Skip to main content
Module

x/docxml/mod.ts>ParagraphProperties

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

All the formatting properties that can be given to a paragraph.

Serializes to the <w:pPr> element. http://officeopenxml.com/WPparagraphProperties.php http://www.datypic.com/sc/ooxml/e-w_pPr-6.html

definition: { alignment?:
| "left"
| "right"
| "center"
| "both"
| null
; outlineLvl?: number | null; style?: string | null; spacing?: null | { before?: Length | null; after?: Length | null; line?: Length | null; lineRule?:
| "atLeast"
| "exactly"
| "auto"
| null
; afterAutoSpacing?: boolean | null; beforeAutoSpacing?: boolean | null; }
; indentation?: null | { left?: Length | null; leftChars?: number | null; right?: Length | null; rightChars?: number | null; hanging?: Length | null; hangingChars?: number | null; firstLine?: Length | null; firstLineChars?: number | null; }; change?: null | ({ id: number; author: string; date: Date; } & Omit<ParagraphProperties, "change">); }