Files
docx-js/src/file/document/body/section-properties/page-margin/page-margin-attributes.ts

24 lines
548 B
TypeScript
Raw Normal View History

2018-01-24 00:01:38 +00:00
import { XmlAttributeComponent } from "file/xml-components";
export interface IPageMarginAttributes {
top: number;
right: number;
bottom: number;
left: number;
header: number;
footer: number;
gutter: number;
}
export class PageMarginAttributes extends XmlAttributeComponent<IPageMarginAttributes> {
protected xmlKeys = {
top: "w:top",
right: "w:right",
bottom: "w:bottom",
left: "w:left",
header: "w:header",
footer: "w:footer",
gutter: "w:gutter",
};
}