RectF::Offset(REAL,REAL) method (gdiplustypes.h)

The RectF::Offset method moves the rectangle by dx horizontally and by dx vertically.

Syntax

void Offset(
  [in] REAL dx,
  [in] REAL dy
);

Parameters

[in] dx

Type: REAL

Real number that specifies the amount to move the rectangle horizontally.

[in] dy

Type: REAL

Real number that specifies the amount to move the rectangle vertically.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Offset Methods

Pens, Lines, and Rectangles

Rect

RectF

Using a Pen to Draw Lines and Rectangles