- /// Creates a Point from an integer which holds the X
- /// coordinate in the high order 16 bits and the Y
+ /// Creates a Point from an integer which holds the Y
+ /// coordinate in the high order 16 bits and the X
return string.Format ("{{X={0},Y={1}}}", x.ToString (CultureInfo.InvariantCulture),
y.ToString (CultureInfo.InvariantCulture));
}
return string.Format ("{{X={0},Y={1}}}", x.ToString (CultureInfo.InvariantCulture),
y.ToString (CultureInfo.InvariantCulture));
}
public static Point Add (Point pt, Size sz)
{
return new Point (pt.X + sz.Width, pt.Y + sz.Height);
public static Point Add (Point pt, Size sz)
{
return new Point (pt.X + sz.Width, pt.Y + sz.Height);