Back to Devexpress

TdxFillOptions.Color2 Property

vcl-cxcustomcanvas-dot-tdxfilloptions-dot-color2.md

latest2.0 KB
Original Source

TdxFillOptions.Color2 Property

Specifies secondary fill color.

Declaration

delphi
property Color2: TdxAlphaColor read; write; default TdxAlphaColors.Default;

Property Value

TypeDefaultDescription
TdxAlphaColorDefault

The current secondary fill color.

|

Remarks

Use Color and Color2 properties to specify primary and secondary fill colors. The secondary fill color is used only in Hatch and Gradient fill modes.

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.

Default Value

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

The default Color2 property value indicates that the parent UI element’s settings determine the actual secondary fill color.

Note

The Color2 property value is used only in Hatch and Gradient fill modes.

See Also

TdxChartPaletteItem.Color2 Field

TdxFillOptions Class

TdxFillOptions Members

cxCustomCanvas Unit