# 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 devenv-styleexpr-property value to determine whether the field is formatted. If the devenv-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 devenv-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.
```al
field("Code"; Code)
    {
        Style = Strong;
        StyleExpr = Emphasize;
    }
```
## Related information
devenv-properties

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-style-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-style-property/
