Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartVisualElementAppearance.TextColor Property

Specifies font color.

#Declaration

Delphi
property TextColor: TdxAlphaColor index TextColorIndex read; write; default TdxAlphaColors.Default;

#Property Value

Type Default Description
TdxAlphaColor Default

The current color of the font used in the visual element.

#Remarks

Use the TextColor property to change font color in the visual element. To customize all other font settings, use the FontOptions property.

#Value Type

The BorderColor property accepts TdxAlphaColor values instead of TColor to support transparency.

You can use the TdxAlphaColors record declared in the dxCoreGraphics unit to obtain compatible predefined colors or create custom TdxAlphaColor values. Alternatively, you can call the dxMakeAlphaColor function or other global methods declared in the same unit.

#Default Value

The TextColor property’s default value is TdxAlphaColors.Default.

The default TextColor property value indicates that the text color depends on the current look & feel settings of the Chart control. Light skins and color schemes apply a dark color to text while dark skins and color schemes apply a light color to text to maintain contrast.

See Also