From efa4f1933a81952755e95814857b91e762b76cad Mon Sep 17 00:00:00 2001 From: Dolan Date: Mon, 13 Mar 2017 00:57:57 +0000 Subject: [PATCH] moved Text section to Wiki --- README.md | 74 ------------------------------------------------------- 1 file changed, 74 deletions(-) diff --git a/README.md b/README.md index 75a5919603..e758b0ac90 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,6 @@ - [Text Alignment](#) - [Example](#) - [Thematic Break (Page Break)](#) - - [Text](#) - - [Typographical Emphasis](#) - - [Bold](#) - - [Italics](#) - - [Underline](#) - - [Break](#) - - [Chaining](#) - [Exporting](#) - [Express](#) - [Standalone .docx file](#) @@ -178,73 +171,6 @@ var paragraph = new docx.Paragraph("Amazing Heading").heading1().pageBreak(); ``` The above example will create a heading and start a new page immediately afterwards. -## Text -Paragraphs need `text run` objects. To create text: -```js -var text = new docx.TextRun("My awesome text here for my university dissertation"); -paragraph.addText(text); -``` -Text objects have methods inside which changes the way the text is displayed. - -### Typographical Emphasis -More info [here](https://english.stackexchange.com/questions/97081/what-is-the-typography-term-which-refers-to-the-usage-of-bold-italics-and-unde) -#### Bold -```js -text.bold(); -``` - -#### Italics -```js -text.italic(); -``` - -#### Underline -```js -text.underline(); -``` - -#### Strike through -```js -text.strike(); -``` - -#### Double strike through -```js -text.doubleStrike(); -``` - -#### Superscript -```js -text.superScript(); -``` - -#### Subscript -```js -text.subScript(); -``` - -#### All Capitals -```js -text.allCaps(); -``` - -#### Small Capitals -```js -text.smallCaps(); -``` - -### Break -Sometimes you would want to put text underneath another line of text but inside the same paragraph. -```js -text.break(); -``` - -### Chaining -What if you want to create a paragraph which is ***bold*** and ***italic***? -```js -paragraph.bold().italic(); -``` - # Exporting Check the Wiki for exporting guide