Gdi32RectInRegion(IntPtr, NativeRectangle) Method
Determines whether any part of the specified rectangle is within the boundaries of a region.
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("GDI32.dll", SetLastError = true)]
public static bool RectInRegion(
IntPtr hRgn,
ref NativeRectangle refRect
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function RectInRegion (
hRgn As IntPtr,
ByRef refRect As NativeRectangle
) As Boolean
Dim hRgn As IntPtr
Dim refRect As NativeRectangle
Dim returnValue As Boolean
returnValue = Gdi32.RectInRegion(hRgn,
refRect)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static bool RectInRegion(
IntPtr hRgn,
NativeRectangle% refRect
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member RectInRegion :
hRgn : IntPtr *
refRect : NativeRectangle byref -> bool
No code example is currently available or this language may not be supported.
- hRgn IntPtr
-
Handle to the region.
- refRect NativeRectangle
-
A NativeRectangle structure containing the coordinates of the rectangle in logical units.
The lower and right edges of the rectangle are not included.
Boolean
If any part of the specified rectangle lies within the boundaries of the region, the return value is
.
If no part of the specified rectangle lies within the boundaries of the region, the return value is
.