Skip to main content
All docs
V24.1

TdxChartPaletteItem.Color2 Field

Stores the secondary palette item color.

Declaration

Color2: TdxAlphaColor

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