Skip to main content

ParseHexString Method

Parses a hex color value string into a new Color.

Definition

Namespace: Avalonia.Controls.Converters
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public static Color? ParseHexString(
string hexColor,
AlphaComponentPosition alphaPosition
)

Parameters

  String
The hex color string to parse.
  AlphaComponentPosition
The input position of the alpha component.

Return Value

Nullable(Color)
The parsed Color; otherwise, null.

See Also

Reference

ColorToHexConverter Class
Avalonia.Controls.Converters Namespace