TdxAdvancedColorPalette.StrokeColors Property
Provides access to the strokes color palette.
Declaration
property StrokeColors[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 draw strokes and outlines. The color names within the palette correspond to the recognized keywords in the ‘stroke’ 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 StrokeColors 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 writable typed constant to the property.
Use the FillColors property to access and manage the palette of named colors used to fill enclosed polygons.
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.