Class Point
A point in pixels, written as {x,y} in a view file.
public class Point
- Inheritance
-
Point
- Inherited Members
Constructors
Point()
Creates the point (0, 0).
public Point()
Point(int, int)
Creates a point at the given position, in pixels.
public Point(int x, int y)
Parameters
Point(string)
Parses {x,y}. Anything that does not parse leaves the value at zero.
public Point(string pointString)
Parameters
pointStringstring
Properties
X
The horizontal position, in pixels.
[Required]
public int X { get; set; }
Property Value
Y
The vertical position, in pixels.
[Required]
public int Y { get; set; }
Property Value
Methods
ToString()
Formats the point as {x,y}.
public override string ToString()