From b5503e7b9be915647c516fd06d6c63aa71fe4b69 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Tue, 6 Aug 2019 17:36:05 +0100 Subject: [PATCH] Add documentation for AlignmentType --- docs/usage/paragraph.md | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/docs/usage/paragraph.md b/docs/usage/paragraph.md index 48e98d471d..f7bb863c94 100644 --- a/docs/usage/paragraph.md +++ b/docs/usage/paragraph.md @@ -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({