Επεξεργασία

Κοινή χρήση μέσω


Rect.Equality(Rect, Rect) Operator

Definition

Compares two Rect structs for equality.

public:
 static bool operator ==(Windows::Foundation::Rect rect1, Windows::Foundation::Rect rect2);
public static bool operator == (Windows.Foundation.Rect rect1, Windows.Foundation.Rect rect2);
static member ( = ) : Windows.Foundation.Rect * Windows.Foundation.Rect -> bool
Public Shared Operator == (rect1 As Rect, rect2 As Rect) As Boolean

Parameters

rect1
Rect

The first rectangle to compare.

rect2
Rect

The second rectangle to compare.

Returns

true if the Rect structs have the same x, y, width, and height property values; otherwise, false.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information and examples of this member, see Rect.Equality in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Applies to