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

TControlBorderSpacing.ControlWidth

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

Declaration

Source position: controls.pp line 868

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:

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

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

See also

TControlBorderSpacing.Control

  

The control where the border spacing values are applied.

TControlBorderSpacing.Around

  

The border space on each of the edges for the associated control.

TControlBorderSpacing.Left

  

The border space on the left edge of the associated control.

TControlBorderSpacing.Right

  

The border space on the right edge of the associated control.

TControlBorderSpacing.ControlHeight

  

Total height for the control including border spacing values in Around, Top, and Bottom.

TControl.Width

  

The horizontal size for the control.


Version 4.0 Generated 2025-05-03 Home