FMX.Graphics.TFontColorForState.GetCurrentColor
Delphi
function GetCurrentColor(const Index: TIndex): TAlphaColor; virtual;
C++
virtual System::Uitypes::TAlphaColor __fastcall GetCurrentColor(const TIndex Index);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TFontColorForState |
Description
Getter for the CurrentColor property.
GetCurrentColor returns the TAlphaColor color kept in the Color property for the state specified by Index
. If
Color[Index] = claNull; // claNull=$00000000
then GetCurrentColor returns the FontColor color
from the Owner object having the TTextSettings type.
You can override the virtual GetCurrentColor method in a derived class to define a customized color for a font.
See Also
- FMX.Graphics.TFontColorForState.TIndex
- FMX.Graphics.TFontColorForState.Color
- FMX.Graphics.TFontColorForState.Active
- FMX.Graphics.TFontColorForState.Focused
- FMX.Graphics.TFontColorForState.Hot
- FMX.Graphics.TFontColorForState.Normal
- FMX.Graphics.TFontColorForState.Pressed
- FMX.Graphics.TTextSettings
- FMX.Graphics.TTextSettings.FontColor
- FMX.Graphics.TFontColorForState.CurrentColor