Size.Equality Operator (Size, Size)

 

Compares two instances of Size for equality.

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

public static bool operator ==(
	Size size1,
	Size size2
)

Parameters

size1
Type: System.Windows.Size

The first instance of Size to compare.

size2
Type: System.Windows.Size

The second instance of Size to compare.

Return Value

Type: System.Boolean

true if the two instances of Size are equal; otherwise false.

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