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

x/docxml/src/components/Break.ts>Break

TypeScript (component) library for building and parsing a DOCX file
Latest
class Break
import { Break } from "https://deno.land/x/docxml@5.15.3/src/components/Break.ts";

A component that represents a line break, page break or section break in a DOCX document. Place this in one of the <Text>, <TextAddition> or <TextDeletion> components.

Methods

toNode(_ancestry: ComponentAncestor[]): Node

Creates an XML DOM node for this component instance.

Static Properties

readonly
children: string[]
readonly
mixed: boolean

Static Methods

fromNode(node: Node): Break

Instantiate this component from the XML in an existing DOCX file.

matchesNode(node: Node): boolean

Asserts whether or not a given XML node correlates with this component.