import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; // // // // // // // // // // export enum VerticalAlign { BOTTOM = "bottom", CENTER = "center", TOP = "top", } export class VerticalAlignAttributes extends XmlAttributeComponent<{ readonly verticalAlign?: VerticalAlign; }> { protected readonly xmlKeys = { verticalAlign: "w:val", }; } export class VerticalAlignElement extends XmlComponent { constructor(value: VerticalAlign) { super("w:vAlign"); this.root.push(new VerticalAlignAttributes({ verticalAlign: value })); } }