System.Types.TRectF.CenteredRect

From RAD Studio API Documentation
Jump to: navigation, search

C++

TRectF CenteredRect(const TRectF &CenteredRect) const _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
function public SystemTypes.h System.Types TRectF

Description

Returns a centered rectangle.

CenteredRect returns a centered rectangle from another rectangle. If CenteredRect is already centered, CenteredRect returns the same rectangle.

A centered rectangle is a rectangle that has the same CenterPoint as the rectangle it is centered in. CenteredRect returns a new rectangle whose coordinates are in the center of the source rectangle.

See Also