User32OffsetRect(Rectangle, Int32, Int32) Method

Moves the specified Rectangle by the specified offsets.

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 OffsetRect(
	out Rectangle refRect,
	int x,
	int y
)

Parameters

refRect  Rectangle
A pointer to the Rectangle structure that contains the logical coordinates of the rectangle to be moved.
x  Int32
Specifies the amount to move the rectangle left or right.

This parameter must be a negative value to move the rectangle to the left.

y  Int32
Specifies the amount to move the rectangle up or down.

This parameter must be a negative value to move the rectangle up.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also