TryParse

FontSize.TryParse method

Tries to recognize a specified keyword as a proper keyword value of the ‘font-size’ and return it on success or NULL on failure.

public static bool TryParse(string keyword, out FontSize result)
Parameter Type Description
keyword String A keyword to parse
result FontSize& Result, of parsing was successful, or Medium otherwise

Return Value

true if parsing was successful, false otherwise

See Also