CreateText - cWebDrawing
Draws text
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| sId | String | ID of the item |
| position | tWebPoint | The position of the item |
| sContent | String | The text content |
| sFontFamily | String | The font family |
| fFontSize | Float | the font size |
| eJustification | Integer | (Optional) the justification of the text, see wdFontJustification |
| sFontWeight | String | (Optional) the amount of weight a font as a CSS property. (Bold, light, lighter) |
| sTextDecoration | String | (Optional) the type of decoration used for text, such as underline, overline and line-through. |
Syntax
Procedure CreateText String sId tWebPoint position String sContent String sFontFamily Float fFontSize Integer eJustification String sFontWeight String sTextDecoration
Call Example
Send CreateText sId position sContent sFontFamily fFontSize eJustification sFontWeight sTextDecoration
Description
Draws text.
Valid eJustification values:
| Constant | Meaning |
|---|---|
| wdFontJustificationLeft | Left justification |
| wdFontJustificationCenter | Center justification |
| wdFontJustificationRight | Right justification |