FormattedString

Constructors:

Based on strings
Based on the format description

Description:

Used for storing and displaying strings with format.
You can use the following formatting:
  • text color
  • background color
  • text font
  • images
  • hyperlinks
Values of this type are immutable.
Note. If the formattied string does not fit the field, the items that were not fit by height:
  • are cut in web client,
  • are not displayed in the thin client.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).
Exchange with server is possible. Serializable. The given object may be serialized to/from XML. Can be used in attributes of managed form. The given object may be serialized to/from XDTO. The XDTO type correspoding to this object is defined in {http://v8.1c.ru/8.1/data/ui} namespace. XDTO type name: FormattedString.

Example:

Attribute1 = New (FormattedString (
            "Product ",
            New 
FormattedString (Description, , WebColors.Red), "is not in stock.");


    

1C:Enterprise Developer's Community