Gdi32RectInRegion(IntPtr, Rectangle) Method

Determines whether any part of the specified rectangle is within the boundaries of a region.

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("GDI32.dll", SetLastError = true)]
public static bool RectInRegion(
	IntPtr hRgn,
	ref Rectangle refRect
)

Parameters

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.

Return Value

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 .

Remarks

See Also