Converts this color to a hex representation
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public string ToHex(
bool includeAlpha = true
)
Public Function ToHex (
Optional includeAlpha As Boolean = true
) As String
member ToHex :
?includeAlpha : bool
(* Defaults:
let _includeAlpha = defaultArg includeAlpha true
*)
-> string
Parameters
- includeAlpha (Optional)
- Type: SystemBoolean
True to include the alpha component, false to exclude it
Return Value
Type:
StringA hex representation of this color, with 8 digits if
includeAlpha is true, or 6 digits if false
Remarks
This will either return a hex value with 8 digits (two per component), or 6 digits (two per RGB) if the includeAlpha is set to false.
See Also