Add new section method
This commit is contained in:
@ -185,6 +185,14 @@ export class File {
|
|||||||
this.document.Body.addSection(sectionPropertiesOptions);
|
this.document.Body.addSection(sectionPropertiesOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public addSection(section: ISectionOptions): void {
|
||||||
|
this.document.Body.addSection(section.properties);
|
||||||
|
|
||||||
|
for (const child of section.children) {
|
||||||
|
this.add(child);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public createFootnote(paragraph: Paragraph): void {
|
public createFootnote(paragraph: Paragraph): void {
|
||||||
this.footNotes.createFootNote(paragraph);
|
this.footNotes.createFootNote(paragraph);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user