Add suppressLineNumber option to Paragraph

This commit is contained in:
Matt Powell
2021-09-27 19:11:09 -07:00
parent 0256968240
commit 34036bca8f

View File

@ -52,6 +52,7 @@ export interface IParagraphPropertiesOptions extends IParagraphStylePropertiesOp
readonly shading?: IShadingAttributesProperties;
readonly widowControl?: boolean;
readonly frame?: IFrameOptions;
readonly suppressLineNumbers?: boolean;
}
export class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
@ -166,6 +167,10 @@ export class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
if (options.outlineLevel !== undefined) {
this.push(new OutlineLevel(options.outlineLevel));
}
if (options.suppressLineNumbers !== undefined) {
this.push(new OnOffElement("w:suppressLineNumbers", options.suppressLineNumbers));
}
}
public push(item: XmlComponent): void {