User32UnionRect(Rectangle, Rectangle, Rectangle) Method

Creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.

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", SetLastError = true)]
public static bool UnionRect(
	ref Rectangle refDstRect,
	ref Rectangle refSrcRect1,
	ref Rectangle refSrcRect2
)

Parameters

refDstRect  Rectangle
A Rectangle that will receive a rectangle containing the rectangles pointed to by the refSrcRect1 and refSrcRect2 parameters.
refSrcRect1  Rectangle
A Rectangle that contains the first source rectangle.
refSrcRect2  Rectangle
A Rectangle that contains the second source rectangle.

Return Value

Boolean
If the specified structure contains a nonempty rectangle, the return value is .

If the specified structure does not contain a nonempty rectangle, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also