Files
docx-js/src/file/document/body/section-properties/vertical-align/vertical-align.ts

19 lines
522 B
TypeScript
Raw Normal View History

// http://officeopenxml.com/WPsection.php
import { XmlComponent } from "file/xml-components";
import { SectionVerticalAlignAttributes } from "./vertical-align-attributes";
export enum SectionVerticalAlignValue {
Both = "both",
Bottom = "bottom",
Center = "center",
Top = "top",
}
export class SectionVerticalAlign extends XmlComponent {
constructor(value: SectionVerticalAlignValue) {
super("w:vAlign");
this.root.push(new SectionVerticalAlignAttributes({ valign: value }));
}
}