RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.ClientWidth Property

Specifies the horizontal size of the control's client area in pixels.

Pascal
property ClientWidth: Integer;
C++
__property int ClientWidth;

Use ClientWidth to read or change the width of the control's client area. ClientWidth is equivalent to ClientRect.Right. 

For TControl, ClientWidth is the same as Width. Derived classes may implement a ClientWidth property that differs from Width. For example, the ClientWidth of a form is the value of the Width property minus the width of the resize border and scroll bars. 

 

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