Compares two Point structures for equality.
Assembly: WindowsBase (in WindowsBase.dll)
'Declaration Public Shared Operator = ( _ point1 As Point, _ point2 As Point _ ) As Boolean
The following example shows how to check if two Point structures are equal using the overloaded (==) operator.
Private Function overloadedEqualityOperatorExample() As Boolean Dim point1 As New Point(10, 5) Dim point2 As New Point(15, 40) ' Check if two Points are equal using the overloaded equality operator. ' areEqual is False. Dim areEqual As Boolean = (point1 = point2) Return areEqual End Function
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)