FMX.Graphics.TFontColorForState.GetCurrentColor

From RAD Studio API Documentation
Jump to: navigation, search

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