Method Parse
Parse(string, IFormatProvider)
Parses a string into a Point.
Accepted forms include "x,y", "x y", and "(x, y)".
public static Point Parse(string s, IFormatProvider provider = null)
Parameters
sstringThe input string.
providerIFormatProviderAn optional format provider for culture-specific parsing. If null, the current culture is used.
Returns
Exceptions
- ArgumentNullException
Thrown when
sis null.- FormatException
Thrown when
sis not in a recognized format.