User32OffsetRect(NativeRectangle, Int32, Int32) Method
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 OffsetRect(
out NativeRectangle refRect,
int x,
int y
)
<DllImportAttribute("User32.dll">]
Public Shared Function OffsetRect (
<OutAttribute> ByRef refRect As NativeRectangle,
x As Integer,
y As Integer
) As Boolean
Dim refRect As NativeRectangle
Dim x As Integer
Dim y As Integer
Dim returnValue As Boolean
returnValue = User32.OffsetRect(refRect,
x, y)
public:
[DllImportAttribute(L"User32.dll")]
static bool OffsetRect(
[InAttribute] [OutAttribute] NativeRectangle% refRect,
[InAttribute] int x,
[InAttribute] int y
)
[<DllImportAttribute("User32.dll")>]
static member OffsetRect :
refRect : NativeRectangle byref *
x : int *
y : int -> bool
No code example is currently available or this language may not be supported.
- refRect NativeRectangle
-
A pointer to the NativeRectangle 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.