NDepend.API Documentation
ToBackColor Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebt Class : ToBackColor Method
The DebtRating value.
Convert the debtRating to a back color.
Syntax
[Extension()]
public static NdpColor ToBackColor( 
   DebtRating debtRating
)

Parameters

debtRating
The DebtRating value.
Remarks
Strong green (RGB: 51;204;51) is returned for the value DebtRating.DebtRating.A.
Light green (RGB: 153;255;101) is returned for the value DebtRating.DebtRating.B.
Yellow (RGB: 255;255;0) is returned for the value DebtRating.DebtRating.C.
Orange (RGB: 255;153;0) is returned for the value DebtRating.DebtRating.D.
Red (RGB: 255;0;0) is returned for the value DebtRating.DebtRating.E.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsDebt Class
ExtensionMethodsDebt Members