Indicates if the contents of the control must be interpreted as text or as HTML code.
|Text ||The content of the control will be interpreted as text. Leading spaces are ignored. Two or more spaces are interpreted as only one. This is the default value. |
|HTML ||The content of the control will be interpreted as HTML code.|
|Raw HTML ||The same as HTML, but the content will not appear within the SPAN tag. Use this option when you need to add HTML and you do not want to apply any style to it. It is used on the Web.|
|Text with meaningful spaces || It’s the same as “Text,” except that leading spaces and spaces in the middle of a sentence are shown as they are. In the case of “Text” value, two or more spaces are interpreted as only one. It is used on the Web.|
Generators: .NET, .NET Framework, Java
Controls: Attribute/Variable, Button, Text Block
In the case of Attributes, the format property of the controls associated with the Attribute will inherit the value of this property (which can be modified using the Format property of the control).
This property is enabled only when the Read-only property is enabled and can be used at design and execution time.
When using the RawHTML option, and when executing a User Event it is not possible to modify its value.
RawHTML option means that the developer is in charge of the code in the control. GeneXus does not include the content of a container; later on, GX cannot locate it at runtime. If you need to change its value in a User Event, use the HTML option.
A Text Block contains the string "<b>Hello</b>".
If the Format property has the ‘HTML’ value, you will view the text Hello in ‘Bold’ at runtime, like this: Hello
If the property has the ‘Text’ value, you will view the whole string, including the HTML tags, like this: <b>Hello</b>
Control.Format = 1 // HTML format
To apply the corresponding changes when the property value is configured, execute a Rebuild All.
Extended Data Types Read-Only property