Style - TextColor Property

RGB color value or a LANSA specified color name applied to the foreground text

Member of Style (PRIM_VS.Style)

Data Type - Color


The TextColor is the color to be applied to the foreground of the control.
Foreground features of a Style are inherited by child controls. This allows for a single color to be applied at application level that will be used throughout.
If both a TextColor and ForegroundBrush are specified on the same style, the ForegroundBrush will take precedence.

Theme Color Names

Theme color names represent a set of predefined complementary shades. There are many predefined Themes.

Allowed Values

Description Enum Values
Colors Theme50, Theme100, Theme200, Theme300, Theme400, Theme500, Theme600, Theme700, Theme800, Theme900, ThemeDisabled, ThemeInactive
Accent Colors ThemeA100, ThemeA200, Theme400, ThemeA700

Allowed Colors

Enum Value Sample Description
Aqua RGB - 0:255:255
Black RGB - 0:0:0
Blue RGB - 0:0:255
Brown RGB - 128:64:0
Gray RGB - 128:128:128
Green RGB - 0:128:0
Fuchsia RGB - 255:0:255
Lime RGB - 0:255:0
Maroon RGB - 128:0:0
Navy RGB - 0:0:128
Olive RGB - 128:128:0
Purple RGB - 128:0:128
Red RGB - 255:0:0
Silver RGB - 192:192:192
Teal RGB - 0:128:128
White RGB - 255:255:255
Yellow RGB - 255:255:0

RGB Colors

RGB colors should be entered in the format [0-255]:[0-255]:[0-255]

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020