System.Classes.Bounds

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

Delphi

function Bounds(ALeft, ATop, AWidth, AHeight: Integer): TRect;

C++

extern DELPHI_PACKAGE System::Types::TRect __fastcall Bounds(int ALeft, int ATop, int AWidth, int AHeight);

プロパティ

種類 可視性 ソース ユニット
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

説明

矩形の左上隅の座標、幅と高さの値から TRect 構造体を作成します。

指定された値を持つ矩形を表す TRect を作成するには、Bounds を呼び出します。TBounds を必要とする関数のパラメータを作成するには、パラメータごとにローカル変数をセットアップする代わりに、Rect を使用します。

メモ:  矩形の座標を計算する必要がある場合は、Rect の代わりに Bounds が役立ちます。

関連項目