Style Property

Version: Available or changed with runtime version 1.0.

Sets a value that determines how text in a field on a page is formatted. For fields that are included in a CueGroup, this property sets the value of the color indicator on the cue.

Applies to

  • Page Label
  • Page Field

Property value

ValueAvailable or changed withDescription
Noneruntime version 1.0None
Standardruntime version 1.0Standard
StandardAccentruntime version 1.0Blue
Strongruntime version 1.0Bold
StrongAccentruntime version 1.0Blue + Bold
Attentionruntime version 1.0Red + Italic
AttentionAccentruntime version 1.0Blue + Italic
Favorableruntime version 1.0Bold + Green
Unfavorableruntime version 1.0Bold + Italic + Red
Ambiguousruntime version 1.0Yellow
Subordinateruntime version 1.0Grey

Remarks

Note


This information in this topic mainly pertains to formatting the text on page fields.

The Style property works together with the StyleExpr Property value to determine whether the field is formatted. If the StyleExpr Property evaluates to true, then the value of the field is formatted as specified by the Style property.

By default, the Style property is not set.

Note

This property isn't supported if one of the following data types is used for the SourceExpr of the field:\

  • Code\
  • Boolean\
  • Binary\
  • BLOB\
  • GUID\
  • RecordID

On pages, you use the Style property for group, part, field, and action controls. You can change the formatting of a control either statically by setting the StyleExpr Property to true or false, or dynamically by using a Boolean variable or a Boolean field on the page. The Boolean field on the page can be either a true/false Boolean or a Boolean expression, such as “Credit Limit > Sales YTD”.

Example

The following code sample shows how to make the text of the field control "Code" bold using the Style property. The text will be formatted only if the Boolean variable Emphasize evaluates to true.

field("Code"; Code)
    {
        Style = Strong;
        StyleExpr = Emphasize;
    }

Properties