Skip to main content

TryParse Method

Try parsing source as PixelSize.

Definition​

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

public static bool TryParse(
string? source,
out PixelSize? result
)

Parameters​

  String
The String to parse.
  PixelSize
The result of parsing. if source is not valid result is Empty

Return Value​

Boolean
true if source is valid PixelSize, otherwise false.

See Also​

Reference​

PixelSize Structure
Avalonia Namespace