Style editor: Difference between revisions

Jump to navigation Jump to search
110 bytes removed ,  5 September 2023
Line 54: Line 54:


* '''Name''' – Name of the style.
* '''Name''' – Name of the style.
* '''Fore color''' – Color of the foreground element – in this case, it's the text (#AARRGGBB – AA = alpha/transparency, RR = red channel, GG = green channel, BB = blue channel).
* '''Vertical alignment''' – Align the text to the top side of the cell, the bottom side, or the middle of the cell.
* '''Back color''' – Color of the field’s background (color of the cell).
* '''Horizontal alignment''' – Aligns the text to the left side of the cell, the right side, or the middle of the cell.
* '''Align horizontally''' – NEAR aligns the text to the left side of the cell, FAR aligns text to the right side of the cell and CENTER aligns the text to middle of the cell.
* '''Align vertically''' – NEAR aligns the text to the upper side of the cell, FAR aligns the text to the bottom of the cell, CENTER aligns the text to the middle of the cell.
* '''Format string''' – You can format the way the field data is represented, e.g., you can enter a format string in the way “Personal: {0}” where Personal: is a static text, and the field data is entered where the element {0} is.
* '''Format string''' – You can format the way the field data is represented, e.g., you can enter a format string in the way “Personal: {0}” where Personal: is a static text, and the field data is entered where the element {0} is.
:: You can learn more about FormatString in [https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-6.0 Microsoft documentation]. See also [[Formatting strings in rules]] for inspiration.
:: You can learn more about FormatString in [https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-6.0 Microsoft documentation]. See also [[Formatting strings in rules]] for inspiration.
* '''Font name''', '''Font size''', '''Font weight''' - Specify the font.
* '''Font size''', '''Decoration''', '''Font name''' - Specify the font.
* '''Auto height''' – Adjusts the row’s height to fit the field in case the field element in designer is smaller than the font.
* '''Auto height''' – Adjusts the row’s height to fit the field in case the field element in designer is smaller than the font.
* '''Ellipsis position''' – When a text string does not fit on the screen, it displays an ellipsis (...), indicating that the text is longer than what can be displayed. Configure the position of this ellipsis in the text.
* '''Ellipsis position''' – When a text string does not fit on the screen, it displays an ellipsis (...), indicating that the text is longer than what can be displayed. Configure the position of this ellipsis in the text.
* '''Text color''' – Color of the foreground element – in this case, it's the text (#AARRGGBB – AA = alpha/transparency, RR = red channel, GG = green channel, BB = blue channel).
* '''Background color''' – Color of the field’s background (color of the cell).


=== Tricks ===
=== Tricks ===

Navigation menu