User32SetRect(Rectangle, Int32, Int32, Int32, Int32) Method

Sets the coordinates of the specified rectangle.

This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the NativeRectangle structure.

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 SetRect(
	out Rectangle refRect,
	int xLeft,
	int yTop,
	int xRight,
	int yBottom
)

Parameters

refRect  Rectangle
A pointer to the Rectangle structure that contains the rectangle to be set.
xLeft  Int32
Specifies the x-coordinate of the rectangle's upper-left corner.
yTop  Int32
Specifies the y-coordinate of the rectangle's upper-left corner.
xRight  Int32
Specifies the x-coordinate of the rectangle's lower-right corner.
yBottom  Int32
Specifies the y-coordinate of the rectangle's lower-right corner.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also