Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxAdvancedColorPalette.GetStrokeColor(string) Method

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

#Declaration

Delphi
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