FMX.Graphics.TFontColorForState.CurrentColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CurrentColor[const Index: TIndex]: TAlphaColor read GetCurrentColor;

C++

__property System::Uitypes::TAlphaColor CurrentColor[const TIndex Index] = {read=GetCurrentColor};

Properties

Type Visibility Source Unit Parent
property public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TFontColorForState

Description

The color that is really used to draw a text for the state specified by Index.

CurrentColor contains the TAlphaColor color that is really used to draw a text. By default, CurrentColor is the same as in the Color property. If
Color[Index] = claNull; // claNull=$00000000
then CurrentColor uses the FontColor color from the Owner object.

You can override the virtual GetCurrentColor method in a derived class to define a customized color for a font.

See Also