Gets a hex string representation of the color.

Namespace: Reimers.Google.Map.Accessories
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public static string ColorToHex(
	this Color color,
	bool includeAlpha
)

Parameters

color
Type: System.Drawing..::..Color
The color.
includeAlpha
Type: System..::..Boolean
The include alpha.

Return Value

A hex representation of the color.

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