19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
import {XmlComponent, Attributes} from "../xml-components";
|
|
import {RunProperties} from "./properties";
|
|
import {Bold} from "./emphasis";
|
|
|
|
export class Run implements XmlComponent {
|
|
protected r: Array<XmlComponent>;
|
|
private properties: RunProperties;
|
|
|
|
constructor() {
|
|
this.r = new Array<XmlComponent>();
|
|
this.properties = new RunProperties();
|
|
this.r.push(this.properties);
|
|
}
|
|
|
|
bold(): Run {
|
|
this.properties.push(new Bold());
|
|
return this;
|
|
}
|
|
} |