Rect.Equals Method

Definition

Overloads

Equals(Object)

Indicates whether the specified object is equal to the current Rect.

Equals(Rect)

Indicates whether the specified Rect is equal to the current Rect.

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 <System.Windows.Rect.Equals%2A?displayProperty=nameWithType> in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Equals(Object)

Indicates whether the specified object is equal to the current Rect.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

Parameters

o
Object

The object to compare to the current rectangle.

Returns

true if o is a Rect and has the same x, y, width, and height values as the current Rect; otherwise, false.

Equals(Rect)

Indicates whether the specified Rect is equal to the current Rect.

public:
 bool Equals(Windows::Foundation::Rect value);
public bool Equals (Windows.Foundation.Rect value);
override this.Equals : Windows.Foundation.Rect -> bool
Public Function Equals (value As Rect) As Boolean

Parameters

value
Rect

The rectangle to compare to the current rectangle.

Returns

true if the specified Rect has the same x, y, width, and height property values as the current Rect; otherwise, false.

Applies to