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

dxSpreadSheetGetColorDefault(TColor,TColor) Method

Validates the specified color and returns the actual TColor value which can safely be used for painting.

#Declaration

Delphi
function dxSpreadSheetGetColorDefault(AColor: TColor; ADefaultColor: TColor): TColor;

#Parameters

Name Type
AColor TColor
ADefaultColor TColor

#Returns

Type
TColor

#Remarks

If the color value specified as the AColor parameter, equals clDefault, this function returns the color value specified as the ADefaultColor parameter. Otherwise, the dxSpreadSheetGetColorDefault function returns the AColor value unchanged.

The dxSpreadSheetGetColorDefault function is used to determine which colors should be used to paint the cell background and the cell pattern in the Table View.

See Also