[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControlBorderSpacing.ControlWidth

Total width for the control including spacing values in Around, Left, and Right.

Declaration

Source position: controls.pp line 876

public property TControlBorderSpacing.ControlWidth : Integer
  read GetControlWidth;

Description

ControlWidth is a read-only Integer property that contains the total width for the control including spacing values in the Around, Left, and Right properties. The property value is calculated using the following formula:

TControl.Width + (2 * Around) + Left + Right

If a TControl instance is not available in Control, the value for the property is 0 (zero).


Version 3.2 Generated 2024-02-25 Home