User32InflateRect(Rectangle, Int32, Int32) Method

Increases or decreases the width and height of the specified NativeRectangle.

The InflateRect(NativeRectangle, Int32, Int32) function adds 'x' units to the left and right ends of the NativeRectangle and 'y' units to the top and bottom.

The x and y parameters are signed values; positive values increase the width and height, and negative values decrease them.

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")]
public static bool InflateRect(
	out Rectangle refRect,
	int x,
	int y
)

Parameters

refRect  Rectangle
A pointer to the Rectangle structure to be increased or decreased.
x  Int32
The amount to increase or decrease the Rectangle width.

This parameter must be negative to decrease the width.

y  Int32
The amount to increase or decrease the Rectangle height.

This parameter must be negative to decrease the height.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also