Skip to main content

TdxAdvancedColorPalette.FillColors Property

Provides access to the fill color palette.

Declaration

property FillColors[const ID: string]: TdxAlphaColor read; write;

Property Value

Type
TdxAlphaColor

Remarks

Use this property to access and manage the palette of named colors used to fill enclosed polygons. The color names within the palette correspond to the recognized keywords in the ‘fill’ attribute of SVG elements if SVG rasterization routines use this palette.

You can pass a unique color name as the ID parameter to:

  • Access an existing color if the specified ID (name) corresponds to a color within the palette;

  • Update an existing color by assigning a new TdxAlphaColor value to the FillColors property;

  • Add a new color by assigning a TdxAlphaColor value to the property if the specified ID corresponds to no color within the fill palette;

  • Remove a color with the specified ID by assigning the TdxAlphaColors.Default writealbe typed constant to the property.

Use the StrokeColors property to access and manage the palette of named colors used to draw strokes and outlines.

Note

The palette container automatically updates its globally unique 128-bit identifier every time the stored fill or stroke color palette changes. SVG rendering routines use this identifier to track changes made to the active palettes.

See Also