User32CopyRect(Rectangle, Rectangle) Method
Copies the coordinates of one Rectangle to another.
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 CopyRect(
out Rectangle refDstRect,
in Rectangle refSrcRect
)
<DllImportAttribute("User32.dll">]
Public Shared Function CopyRect (
<OutAttribute> ByRef refDstRect As Rectangle,
ByRef refSrcRect As Rectangle
) As Boolean
Dim refDstRect As Rectangle
Dim refSrcRect As Rectangle
Dim returnValue As Boolean
returnValue = User32.CopyRect(refDstRect,
refSrcRect)
public:
[DllImportAttribute(L"User32.dll")]
static bool CopyRect(
[OutAttribute] Rectangle% refDstRect,
[InAttribute] Rectangle% refSrcRect
)
[<DllImportAttribute("User32.dll")>]
static member CopyRect :
refDstRect : Rectangle byref *
refSrcRect : Rectangle byref -> bool
No code example is currently available or this language may not be supported.
- refDstRect Rectangle
-
A pointer to the Rectangle structure that receives the logical coordinates of the source rectangle.
- refSrcRect Rectangle
-
A pointer to the Rectangle structure whose coordinates are to be copied in logical units.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.