Skip to main content

dxSpreadSheetGetColorDefault(TColor,TColor) Method

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

Declaration

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