![]() |
Next Page |
| Contents > Functions reference (alphabetical list) > Text formatting functions > TextStyleAdd function |
|
|
| TextStyleAdd function |
| Format |
TextStyleAdd(text;styles) |
| Parameters |
| text - any text expression or text field |
| styles - any named style listed below in Description |
| Data type returned |
| text |
| Description |
| Text formatting options will be lost if the data type that is returned is something other than text. |
| The styles that are available are: |
| Plain |
| Bold |
| Italic |
| Underline |
| Condense |
| Extend |
| Strikethrough |
| SmallCaps |
| Superscript |
| Subscript |
| Uppercase |
| Lowercase |
| Titlecase |
| WordUnderline |
| DoubleUnderline |
| AllStyles (all available styles) |
| Examples |
| TextStyleAdd("Plaid";Italic) returns the word Plaid in italics. |
| TextStyleAdd(FirstName;Bold+Underline) returns Sophie in bold, underlined text when the FirstName field contains Sophie. |
| The following calculation removes all styles from the text, then italicizes the entire phrase. |
TextStyleAdd(TextStyleAdd(FirstName;Plain);Italic) |
| Let([TitleStyle=Smallcaps+Titlecase;BodyStyle=Plain]; TextStyleAdd(titleField;titleStyle)&"¶¶" & TextStyleAdd(bodyField;BodyStyle)) |
| Substitute(ArticleBody;["Phrase1";TextStyleAdd("Phrase 1";Italic)];["Phrase 2";TextStyleAdd("Phrase 2";Bold)];) |
| Related topics |
| Functions reference (category list) |
| Functions reference (alphabetical list) |
| About formulas |
| About functions |
| Defining calculation fields |
| Using operators in formulas |
|
|
| Contents > Functions reference (alphabetical list) > Text formatting functions > TextStyleAdd function | Next Page |