System.Types.CenterPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CenterPoint(const Rect: TRect): TPoint;

C++

extern DELPHI_PACKAGE TPoint __fastcall CenterPoint(const TRect &Rect);

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
System.Types.hpp
System.Types System.Types

Description

Returns the point in the center of a rectangle.

Call CenterPoint to obtain the point in the center of a rectangle.

Rect is the rectangle whose center you want to locate.

See Also

Code Examples