Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Point.Equals Method (Point)

 

Compares two Point structures for equality.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public bool Equals(
	Point value
)

Parameters

value
Type: System.Windows.Point

The point to compare to this instance.

Return Value

Type: System.Boolean

true if both Point structures contain the same X and Y values; otherwise, false.

Point coordinates are expressed using Double values. Because the value of a Double can lose precision when operated on, a comparison between two Point values that are logically equal might fail.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft