Expressions in the Rtf text
The Rtf text in the RichText component is an expression. There is no any significant distinctions in work with expressions in the RichText component and in work of other text components. The syntax and use of expressions is similar to the syntax and use of expressions in text components. But there is a particular feature. Formatting must not break the code for values calculation in fragments. In other words if you want to write the value in the Rtf text and this value is calculated with use of a code, selected with color, you should set this color for all the code. The code in expression opens with { and closes with }. Correspondingly, any formatting should belong to the code from the opening { to the closing } including these symbols. For example:
![]()
- {Categories.CategoryName} this is the part of a code and formatting is fully applied to this part of the code. This expression will work correct.
![]()
- formatting is applied to the part of the code. This expression will not work.
![]()
- formatting is fully applied to the part of the code, but { and } symbols are not included. This expression will not work.
![]()
- formatting does not include the { symbol that opens the part of the code. This expression will not work.