System.Types.CenteredRect

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

Delphi

function CenteredRect(const SourceRect: TRect; const CenteredRect: TRect): TRect;

C++

extern DELPHI_PACKAGE TRect __fastcall CenteredRect(const TRect &SourceRect, const TRect &CenteredRect);

プロパティ

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

説明

中央揃えの矩形を作成します。

CenteredRect を呼び出すと、矩形を、基準となる矩形の中央に揃えて配置することができます。CenteredRect は、移動対象の矩形を変更するのではなく、基準となる矩形の中心に座標を持つ新しい矩形を返します。

関連項目