Skip to main content

TryParse(String, Color) Method

Parses a color string.

Definition​

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

public static bool TryParse(
string? s,
out Color? color
)

Parameters​

  String
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