add ability to vertically align content of section

This commit is contained in:
alexbogomolov
2019-10-29 12:55:15 +02:00
parent 43ddeec6e1
commit 2276572902
6 changed files with 72 additions and 1 deletions

View File

@ -0,0 +1,18 @@
// 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 }));
}
}