Editar

Partilhar via


Int32Rect.Equals Method

Definition

Determines whether the specified rectangles are equal.

Overloads

Equals(Object)

Determines whether the specified rectangle is equal to this rectangle.

Equals(Int32Rect)

Determines whether the specified rectangle is equal to this rectangle.

Equals(Int32Rect, Int32Rect)

Determines whether the specified rectangles are equal.

Equals(Object)

Determines whether the specified rectangle is equal to this rectangle.

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 an Int32Rect and has the same X, Y, Width, and Height as this rectangle; otherwise, false.

Remarks

This operation tests for object equality.

Applies to

Equals(Int32Rect)

Determines whether the specified rectangle is equal to this rectangle.

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

Parameters

value
Int32Rect

The rectangle to compare to the current rectangle.

Returns

true if value has the same X, Y, Width, and Height as this rectangle; otherwise, false.

Remarks

This operation tests for object equality.

Applies to

Equals(Int32Rect, Int32Rect)

Determines whether the specified rectangles are equal.

public:
 static bool Equals(System::Windows::Int32Rect int32Rect1, System::Windows::Int32Rect int32Rect2);
public static bool Equals (System.Windows.Int32Rect int32Rect1, System.Windows.Int32Rect int32Rect2);
static member Equals : System.Windows.Int32Rect * System.Windows.Int32Rect -> bool
Public Shared Function Equals (int32Rect1 As Int32Rect, int32Rect2 As Int32Rect) As Boolean

Parameters

int32Rect1
Int32Rect

The first rectangle to compare.

int32Rect2
Int32Rect

The second rectangle to compare.

Returns

true if int32Rect1 and int32Rect2 have the same X, Y, Width, and Height; otherwise, false.

Remarks

This operation tests for object equality.

Applies to