The color to hex.

Namespace: Reimers.Core
Assembly: Reimers.Core (in Reimers.Core.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public static string ColorToHex(
	this Color color
)

Parameters

color
Type: System.Drawing..::..Color
The color.

Return Value

The color as a hex string.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Color. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also