Vcl.Controls.TWinControl.GetControlExtents
Delphi
function GetControlExtents: TRect; virtual;
C++
virtual System::Types::TRect __fastcall GetControlExtents(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Returns the smallest rectangle in which all the control's children fit.
Call GetControlExtents to determine the smallest rectangle in which all the control's children fit. Windowed controls call GetControlExtents when implementing the AutoSize property.