FMX.Types.TBounds.PaddingRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PaddingRect(const R: TRectF): TRectF;

C++

System::Types::TRectF __fastcall PaddingRect(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 PaddingRect 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 specified R rectangle.

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

See Also