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.
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("User32.dll")]
public static bool SetRect(
out Rectangle refRect,
int xLeft,
int yTop,
int xRight,
int yBottom
)
<DllImportAttribute("User32.dll">]
Public Shared Function SetRect (
<OutAttribute> ByRef refRect As Rectangle,
xLeft As Integer,
yTop As Integer,
xRight As Integer,
yBottom As Integer
) As Boolean
Dim refRect As Rectangle
Dim xLeft As Integer
Dim yTop As Integer
Dim xRight As Integer
Dim yBottom As Integer
Dim returnValue As Boolean
returnValue = User32.SetRect(refRect,
xLeft, yTop, xRight, yBottom)
public:
[DllImportAttribute(L"User32.dll")]
static bool SetRect(
[OutAttribute] Rectangle% refRect,
int xLeft,
int yTop,
int xRight,
int yBottom
)
[<DllImportAttribute("User32.dll")>]
static member SetRect :
refRect : Rectangle byref *
xLeft : int *
yTop : int *
xRight : int *
yBottom : int -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.