User32EqualRect(Rectangle, Rectangle) Method

Determines whether the two specified NativeRectangle are equal by comparing the coordinates of their upper-left and lower-right corners.

Note that the EqualRect(NativeRectangle, NativeRectangle) function does not treat empty rectangles as equal if their coordinates are different.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool EqualRect(
	in Rectangle refRect1,
	in Rectangle refRect2
)

Parameters

refRect1  Rectangle
A pointer to the NativeRectangle structure that contains the logical coordinates of the first rectangle.
refRect2  Rectangle
A pointer to the NativeRectangle structure that contains the logical coordinates of the second rectangle.

Return Value

Boolean
If the two rectangles are identical, the return value is .

If the two rectangles are not identical, the return value is .

Remarks

See Also