FMX.Graphics.TFontColorForState

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TPersistentSystem.TObjectTFontColorForState

Delphi

TFontColorForState = class (TPersistent)

C++

class PASCALIMPLEMENTATION TFontColorForState : public System::Classes::TPersistent

Properties

Type Visibility Source Unit Parent
class public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics FMX.Graphics

Description

Manages font colors used to draw text for different states of a GUI component containing a TTextSettings object.

TFontColorForState keeps TAlphaColor colors in the Color[Index] array. Index enumerates the possible states of a GUI component (a form or a control). The TIndex type defines the possible states. The Color[Index] color is used as the font color to draw the text in the Index state of a component. Use CurrentColor to obtain the font color for the current state.

A TFontColorForState object is kept in the FontColorForState property of the TTextSettings object, which is kept in the TextSettings property of a GUI component.

See Also