ColorExtensions.ToHex Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

ToHex(Color) Returns a hex string representing the color.
ToHex(HslaColor) Returns a hex string representing the color.

ToHex(Color)

Returns a hex string representing the color.

public static string ToHex(this Color color)

Parameters

color
System.Drawing.Color

Returns

System.String

ToHex(HslaColor)

Returns a hex string representing the color.

public static string ToHex(this HslaColor color)

Parameters

color
HslaColor

Returns

System.String