A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



OffsetRgn

The OffsetRgn function moves a region by the specified offsets.

VB4-32,5,6
Declare Function OffsetRgn Lib "gdi32" Alias "OffsetRgn" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long

VB.NET
System.Drawing.Region

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- hrgn
Identifies the region to be moved.

- nXOffset
Specifies the number of logical units to move left or right.

- nYOffset
Specifies the number of logical units to move up or down.

Return Values
The return value specifies the new regionís complexity. It can be one of the following values:
NULLREGION
Region is empty.

SIMPLEREGION
Region is a single rectangle.

COMPLEXREGION
Region is more than one rectangle.

ERROR
An error occurred; region is unaffected.

Last update: 07 April 2006