System.Types.TRect.CenteredRect

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

C++

TRect CenteredRect(const TRect &CenteredRect) const _ALWAYS_INLINE {

プロパティ

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


説明

中央揃えされた四角形を返します。

CenteredRect は、別の四角形から中央揃えした四角形を返します。CenteredRect がすでに中央揃えされている場合、CenteredRect は同じ四角形を返します。

中央揃えされた四角形の WidthHeight の値は、偶数です。

中央揃えされた四角形は、中央にある四角形と同じ CenterPoint を持つ四角形です。CenteredRect は、ソース四角形の中央に座標がある、新しい四角形を返します。

関連項目