AdvancedText component allows you to input information as a formatted text. There is an option of paragraph and text styles setting and statement using right in the marked text. Formatted text can be specified through HTML-like markup language (Text property) and RTF format subset (RTF property).

Text can be formatted through HTML-like tags in Formatted Text Editor (Text property)

Paragraph Formatting

The couple of tags <P> and </P> forms selected text as a separate paragraph.

Align attribute specifies horizontal alignment of the text in a paragraph. Available values:

  • align = “left” – alignment to the left margin of the paragraph
  • align = “right” - alignment to the right margin of the paragraph
  • align = “center” – center text
  • align = “justify” – align text to both left and right margins

Default value of alignment is “left”. Select edited text and use “Left Align”, “Center Align”, “Right Align” and “Justify” buttons on the toolbox to set the alignment.

Text Formatting

<Font> tag sets the output style of the following text and the closing tag </font> cancels previous settings. <font> tags enclosure is available. Text style is specified through the following attributes:

  • face – sets font name, 
  • size – sets font size.

Press “Font” button to open style editor for quick style definition.

  • color – sets font color.

Available values: color name (e.g. color=”red”), hexadecimal format of separate color components in RGB (e.g. color=”#FF0000”). Press “Color” button to open ColorPicker for quick color choice.

Tag <B> - the following text will be of a bold type. Closing tag </B> cancels this setting. (“Bold” button).

Tag <I> - the following text will be of an italic type. Closing tag </I> cancels this setting. (“Italic” button).

Tag <U> - the following text will be underlined. Closing tag </U> cancels this setting. (“Underline” button).

Tag <BR> - lines folding in a paragraph. (“Insert line break” button).

Symbol Insert

  • “&amp;nbsp;” – space (“Insert space” button), 
  • “&amp;amp;” –‘&’ symbol, 
  • “&amp;lt;” - ‘<’ symbol, 
  • “&#ddd;” - symbol with ddd code.

Note: If the text is not marked as a paragraph, alignment settings according to the TextAlign property are applied. If there are no evident font settings, the settings according to Font property are applied. If text color is not specified, TextFill property is applied. The following is ignored during the text handling: line breaks, several spaces, in succession and unknown tags and attributes. Case in tag names doesn’t matter.

Using Expressions

One can use statements (the result of those will be inserted in the text) directly in the marked text. It is possible to use expressions which calculation result will be set into the text can be used directly inside marked up text. The expression specifies as {=<Statement>}. {=<Statement>} – expression on the set script language. All the available types and objects can be used in the expression. Formatting according to the mask specified in the Format property is applied to the expression result before it is inserted in the text. In case an error occurs, error message is inserted in the text as an expression result.

DataSources section adds special properties to the documents and Data Source fields.

Using RTF Property

RTF format subset is used for text formatting. The following constructions from the RTF format are used: font table, color table, comments, paragraph format operators (“\par”, “\pard”, “\ql”, “\qr”,“\qc”, “\qj”, “\line”), text format operators (“\fxx”, “\fsxx”, “\cfxx”, “\b”, “\i”, “\u”). All the rest constructions and operators will be ignored. Rtf property is designed to write only. Rtf property is connected to the Text property: when Rtf property is specified, Text property value specifies automatically.

Press “Open RTF document” button to load text from the RTF file.

Add Feedback