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 とサイズは同じで、指定されたソース四角形 SourceRect の中央に配置された四角形を返します。CenteredRect は、指定された四角形 CenteredRect には影響は与えず、ソース四角形 SourceRect の中央に、中心がくる新しい四角形を返します。

関連項目