Point.op_Equality

Point Equality operator

Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.

public static bool operator ==(Point point1, Point point2)
ParameterTypeDescription
point1PointA first Point to compare.
point2PointA second Point to compare.

Return Value

True if the X and Y values of point1 and point2 are equal; otherwise, false.

See Also