User32UnionRect(Rectangle, Rectangle, Rectangle) Method
Creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function UnionRect (
ByRef refDstRect As Rectangle,
ByRef refSrcRect1 As Rectangle,
ByRef refSrcRect2 As Rectangle
) As Boolean
Dim refDstRect As Rectangle
Dim refSrcRect1 As Rectangle
Dim refSrcRect2 As Rectangle
Dim returnValue As Boolean
returnValue = User32.UnionRect(refDstRect,
refSrcRect1, refSrcRect2)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool UnionRect(
Rectangle% refDstRect,
Rectangle% refSrcRect1,
Rectangle% refSrcRect2
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member UnionRect :
refDstRect : Rectangle byref *
refSrcRect1 : Rectangle byref *
refSrcRect2 : Rectangle byref -> bool
No code example is currently available or this language may not be supported.
- 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.
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.