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
Value | Available or changed with | Description |
---|---|---|
None | runtime version 1.0 | None |
Standard | runtime version 1.0 | Standard |
StandardAccent | runtime version 1.0 | Blue |
Strong | runtime version 1.0 | Bold |
StrongAccent | runtime version 1.0 | Blue + Bold |
Attention | runtime version 1.0 | Red + Italic |
AttentionAccent | runtime version 1.0 | Blue + Italic |
Favorable | runtime version 1.0 | Bold + Green |
Unfavorable | runtime version 1.0 | Bold + Italic + Red |
Ambiguous | runtime version 1.0 | Yellow |
Subordinate | runtime version 1.0 | Grey |
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.
This property is not 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;
}