Add documentation for AlignmentType
This commit is contained in:
@ -197,25 +197,9 @@ const paragraph = new Paragraph({
|
|||||||
|
|
||||||
## Text Alignment
|
## 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
|
**Example:**
|
||||||
paragraph.center();
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
paragraph.left();
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
paragraph.right();
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
paragraph.justified();
|
|
||||||
```
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const paragraph = new Paragraph({
|
const paragraph = new Paragraph({
|
||||||
|
Reference in New Issue
Block a user