Vcl.Forms.TCustomForm.ClientWidth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ClientWidth: Integer read GetClientWidth write SetClientWidth stored IsClientSizeStored;

C++

__property ClientWidth = {write=SetClientWidth, stored=IsClientSizeStored};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

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

Vcl.Forms.TCustomForm.ClientWidth inherits from Vcl.Controls.TControl.ClientWidth. All content below this line refers to Vcl.Controls.TControl.ClientWidth.

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

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.

See Also

Code Examples