Vcl.Controls.TControl.GetClientRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetClientRect: TRect; virtual;

C++

virtual System::Types::TRect __fastcall GetClientRect(void);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Returns a rectangle defining the client area of the control.

Override GetClientRect to change how the client area is calculated.

The GetClientRect method is the protected method for reading the ClientRect property. GetClientRect returns a rectangle with the rectangle's Top and Left fields set to zero, and its Bottom and Right fields set to the control's ClientHeight and ClientWidth, respectively.

See Also