Skip to main content

TdxFillOptions.Color Property

Specifies primary fill color.

Declaration

property Color: TdxAlphaColor read; write; default TdxAlphaColors.Default;

Property Value

Type Default Description
TdxAlphaColor Default

The current primary 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 Color 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 Color property’s default value is TdxAlphaColors.Default.

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

Note

The Color property value is ignored in Clear and Texture fill modes.

See Also