Leer en inglés Editar

Compartir vía


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.

C#
public override bool Equals(object o);

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

.NET Framework 4.8.1 otras versiones
Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(Int32Rect)

Determines whether the specified rectangle is equal to this rectangle.

C#
public bool Equals(System.Windows.Int32Rect value);

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

.NET Framework 4.8.1 otras versiones
Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(Int32Rect, Int32Rect)

Determines whether the specified rectangles are equal.

C#
public static bool Equals(System.Windows.Int32Rect int32Rect1, System.Windows.Int32Rect int32Rect2);

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

.NET Framework 4.8.1 otras versiones
Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10