Gdi32RectInRegion(IntPtr, Rectangle) 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 Rectangle refRect
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function RectInRegion (
hRgn As IntPtr,
ByRef refRect As Rectangle
) As Boolean
Dim hRgn As IntPtr
Dim refRect As Rectangle
Dim returnValue As Boolean
returnValue = Gdi32.RectInRegion(hRgn,
refRect)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static bool RectInRegion(
IntPtr hRgn,
Rectangle% refRect
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member RectInRegion :
hRgn : IntPtr *
refRect : Rectangle byref -> bool
No code example is currently available or this language may not be supported.
- hRgn IntPtr
-
Handle to the region.
- refRect Rectangle
-
A Rectangle 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
.