System.Types.TRect.Offset

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Offset(const DX, DY: Integer); overload;
procedure Offset(const Point: TPoint); overload;

C++

void Offset(int DX, int DY) _ALWAYS_INLINE {
void Offset(const TPoint& p) _ALWAYS_INLINE { Offset(p.x, p.y); }

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Types.pas
SystemTypes.h
System.Types TRect

Description

Adds horizontal and vertical specified offsets.

Offset does the following:

  • Adds the DX offset to the Left and Right properties.
  • Adds the DY offset to the Top and Bottom properties.

See Also