Gets the color for the hex string.

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 Color HexToColor(
	this string hex,
	bool includeAlpha
)

Parameters

hex
Type: System..::..String
The hex string to convert.
includeAlpha
Type: System..::..Boolean
The include alpha.

Return Value

The color matching the passed hex string.

Usage Note

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

See Also