RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Types.CenterPoint Function

Returns the point in the center of a rectangle.

Pascal
function CenterPoint(const Rect: TRect): TPoint;
C++
TPoint CenterPoint(const TRect Rect);

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

Rect is the rectangle whose center you want to locate. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!