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)
- C#
- VB
- F#
public static Color? ParseHexString(
string hexColor,
AlphaComponentPosition alphaPosition
)
Public Shared Function ParseHexString (
hexColor As String,
alphaPosition As AlphaComponentPosition
) As Color?
static member ParseHexString :
hexColor : string *
alphaPosition : AlphaComponentPosition -> Nullable<Color>
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