IColorComponents.ToString

IColorComponents.ToString method

Converts color components to string representation.

public string ToString(bool includeAlpha, bool asDecimal, int digits)
ParameterTypeDescription
includeAlphaBooleanSpecifies whether to add Alpha component.
asDecimalBooleanSpecifies whether color components are preserved as a decimal number or as a percentage.
digitsInt32Sets the rounding precision for color components.

Return Value

String representation of the color components.

See Also