Vcl.Themes.TCustomStyleServices.GetStyleFontColor
Delphi
function GetStyleFontColor(Font: TStyleFont): TColor;
C++
System::Uitypes::TColor __fastcall GetStyleFontColor(TStyleFont Font);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TCustomStyleServices |
Description
Returns the font color for the element specified by Font
.
Call GetStyleFontColor to obtain the font color defined in the current style for a specific part and state of a control.
For example, if Font
is sfEditBoxDisabled
, GetStyleFontColor returns the color of the text in an edit box, when the edit box is disabled.