Skip to main content

TdxAdvancedColorPalette.GetStrokeColor(string) Method

Returns a color by its unique identifier (name) within the strokes palette.

Declaration

function GetStrokeColor(const ID: string): TdxAlphaColor; override;

Parameters

Name Type
ID string

Returns

Type
TdxAlphaColor

Remarks

Call this function to obtain a color whose name within the strokes palette is passed as the ID parameter. The GetStrokeColor function returns the TdxAlphaColors.Default writable typed constant if the specified name corresponds to no color within the palette.

SVG rendering routines call the GetStrokeColor function internally via the IdxColorPalette interface to obtain a color whose name within the strokes palette matches the recognized keyword specified in the ‘stroke’ attribute of an SVG element.

The GetStrokeColor function is the StrokeColors property’s getter.

See Also