{"title":"Style Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-style-property/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-style-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets a value that determines how text in a field on a page is formatted.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":241,"chars":38},{"level":2,"title":"Property value","slug":"property-value","at":279,"chars":509},{"level":2,"title":"Remarks","slug":"remarks","at":788,"chars":973},{"level":2,"title":"Example","slug":"example","at":1761,"chars":307},{"level":2,"title":"Related information","slug":"related-information","at":2068,"chars":40}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets 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.\n## Applies to\n Page Label\n Page Field\n## Property value\nValue|Available or changed with|Description\nNone|runtime version 1.0|None\nStandard|runtime version 1.0|Standard\nStandardAccent|runtime version 1.0|Blue\nStrong|runtime version 1.0|Bold\nStrongAccent|runtime version 1.0|Blue + Bold\nAttention|runtime version 1.0|Red + Italic\nAttentionAccent|runtime version 1.0|Blue + Italic\nFavorable|runtime version 1.0|Bold + Green\nUnfavorable|runtime version 1.0|Bold + Italic + Red\nAmbiguous|runtime version 1.0|Yellow\nSubordinate|runtime version 1.0|Grey\n## Remarks\n> NOTE\n> This information in this topic mainly pertains to formatting the text on page fields.\nThe 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.\nBy default, the Style property is not set.\n> NOTE\n> This property isn't supported if one of the following data types is used for the SourceExpr of the field:\n > Code\n > Boolean\n > Binary\n > BLOB\n > GUID\n > RecordID\nOn 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\".\n## Example\nThe 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.\n```al\nfield(\"Code\"; Code)\n    {\n        Style = Strong;\n        StyleExpr = Emphasize;\n    }\n```\n## Related information\ndevenv-properties"}