Add documentation for AlignmentType

This commit is contained in:
Dolan Miu
2019-08-06 17:36:05 +01:00
parent 5a005365b2
commit b5503e7b9b

View File

@ -197,25 +197,9 @@ const paragraph = new Paragraph({
## Text Alignment
To change the text alignment of a paragraph, for center, left, right or justified:
To change the text alignment of a paragraph, add an `AlignmentType` option on the paragraph.for center, left, right or justified:
```js
paragraph.center();
```
```js
paragraph.left();
```
```js
paragraph.right();
```
```js
paragraph.justified();
```
### Example
**Example:**
```js
const paragraph = new Paragraph({