Point.Equals Method (Point)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: