TryParse

FontWeight.TryParse method

Tries to parse a specified string and return a valid FontWeight instance on success

public static bool TryParse(string input, out FontWeight result)
Parameter Type Description
input String Input string to parse
result FontWeight& Valid FontWeight value on success or Normal on failure

Return Value

Success (true) or failure (false) of the parsing

See Also