FMX.Types.TBounds.MarginRect

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

Delphi

function MarginRect(const R: TRectF): TRectF;

C++

System::Types::TRectF __fastcall MarginRect(const System::Types::TRectF &R);

プロパティ

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


説明

現在の Rect プロパティと R パラメータで定義される四角形を返します。

MarginRect 関数は、現在の RectLeft 値と Top 値を四角形 R の対応する値に加算したり、同じく Right 値と Bottom 値を四角形 R の対応する値から減算することにより計算された四角形を返します。

たとえば、現在の Rect が (10, 20, 50, 30) で R が (20, 10, 40, 50) の場合、MarginRect の結果は (30, 30, -10, 20) になります。Margins も参照してください。

関連項目