[]
Structure specifing a point with integer X and Y coordinates.
public struct Point2L : IEquatable<Point2L>
Initializes a new instance of the Point2L struct.
public Point2L(Point p)
p
System.Drawing.PointInitializes a new instance of the Point2L struct.
public Point2L(int x, int y)
x
inty
intAn empty point.
public static readonly Point2L Empty
The size of the Point2L type, in bytes.
public const int SizeInBytes = 8
The X coordinate of the point.
public int X
The Y coordinate of the point.
public int Y
Determines if all components of Point2L are equal to zero.
public bool IsEmpty { get; }
Indicates whether this instance and a specified object are equal.
public bool Equals(Point2L other)
other
Point2LIndicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
obj
objectReturns a hash code for this instance.
public override int GetHashCode()
Offsets the point by the specified amount.
public static Point2L Offset(Point2L point1, Point2L point2)
Offsets the point by the specified amount.
public static Point2L Offset(Point2L pt, Size2L sz)
Offsets the point by the specified amount.
public static Point2L Offset(Point2L pt, int dx, int dy)
pt
Point2Ldx
intdy
intOffsets the point by the specified amount.
public void Offset(Point2L pt)
pt
Point2LOffsets the point by the specified amount.
public void Offset(Size2L sz)
sz
Size2LOffsets the point by the specified amount.
public void Offset(int dx, int dy)
dx
intdy
intConverts Point2L to System.Drawing.Point.
public Point ToPoint()
public Point2D ToPoint2D()
public Point2F ToPoint2F()
Returns a string that represents the current object.
public override string ToString()
Returns the result of addition of point2 to point1.
public static Point2L operator +(Point2L point1, Point2L point2)
Returns the result of addition of size to point.
public static Point2L operator +(Point2L p, Size2L sz)
Determines if the specified values are equal.
public static bool operator ==(Point2L left, Point2L right)
Performs an explicit conversion from Point2L to System.Drawing.Point.
public static explicit operator Point(Point2L value)
value
Point2LPerforms an explicit conversion from System.Drawing.Point to Point2L.
public static explicit operator Point2L(Point p)
p
System.Drawing.PointDetermines if the specified values are not equal.
public static bool operator !=(Point2L left, Point2L right)
Returns the result of substruction of point2 from point1.
public static Point2L operator -(Point2L point1, Point2L point2)
Returns the result of substruction of size from point.
public static Point2L operator -(Point2L point, Size2L sz)