Skip to main content
All docs
V24.2

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

TdxChartPaletteItem.Color2 Field

Stores the secondary palette item color.

#Declaration

Delphi

#Field Value

Type Description
TdxAlphaColor

The secondary palette item color that corresponds to the TdxFillOptions.Color2 property.

#Remarks

Use Color and Color2 fields to define primary and secondary colors applied to an XY series or an individual value of a simple series.

VCL Chart Control: Chart Palette Item Examples

#Value Type

The Color2 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.

Note

Secondary palette colors are used only in gradient and hatch fill modes.

See Also