Text formatting functions
Text formatting functions can be used to change the color, font, size, and style of the specified text. For example, you could use the TextFont
function to change the font of the specified text from Arial to Courier. You can use these functions together to change the appearance of text on your layouts.
Text formatting functions operate on these parameters:
- fields of type text
- text constants (in quotations)
- expressions having a text result
Function |
Purpose |
Returns an integer number from 0 to 16777215, obtained by combining color values for red, green, and blue. |
|
Changes the color of text to the color specified by the RGB function. |
|
Removes all font colors in specified text, or removes the font color specified by the RGB function. |
|
Changes the font of text to the specified fontName. |
|
Removes all fonts or the fontToRemove from specified text. |
|
Removes all text formatting from specified text in a single action. |
|
Changes the font size of specified text to fontSize. |
|
Removes all font sizes in text or the font sizeToRemove. |
|
Adds the specified styles to text in a single action. |
|
Removes the specified styles from text in a single action. |