PixelSizeTryParse Method

Try parsing source as PixelSize.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static bool TryParse(
	string? source,
	out PixelSize? result
)

Parameters

source  String
The String to parse.
result  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