FMX.Types.TBounds.MarginRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MarginRect(const R: TRectF): TRectF;

C++

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

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TBounds

Description

Returns a rectangle defined by the current Rect property and the R parameter.

The MarginRect function returns a rectangle calculated by adding the Left and Top values and subtracting the Right and Bottom values of the current Rect to or from the corresponding values of the R rectangle.

For example, if the current Rect is (10, 20, 50, 30) and R is (20, 10, 40, 50), the result of MarginRect is (30, 30, -10, 20). See also Margins.

See Also