System.Types.TRect.Offset

提供: RAD Studio API Documentation
移動先: 案内検索

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); }

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Types.pas
SystemTypes.h
System.Types TRect


説明

指定された水平または垂直オフセットを追加します。

Offset は、次のことを行います:

  • DX オフセットを、Left および Right プロパティに追加します。
  • DY オフセットを、Top および Bottom プロパティに追加します。

関連項目