Skip to main content

TryParse(ReadOnlySpan<Char>, Color) Method

Parses a color string.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool TryParse(
ReadOnlySpan<char> s,
out Color color
)

Parameters​

  ReadOnlySpan(Char)
The color string.
  Color
The parsed color

Return Value​

Boolean
The status of the operation.

See Also​

Reference​

Color Structure
TryParse Overload
Avalonia.Media Namespace