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

# TControlBorderSpacing.Space

Provides indexed access to the border spacing value for a given anchor side.

## Declaration

Source position: controls.pp line 861

`public property TControlBorderSpacing.Space[Kind: TAnchorKind] : Integer read GetSpace write SetSpace;`

## Description

Space is an indexed Integer property which provides access to the border spacing used for a specified TAnchorKind value.

For example:

    AControl.BorderSpacing.Space[akTop] := 6;

Which is equivalent to:

    AControl.BorderSpacing.Top := 6;

## See also

TControlBorderSpacing.Top |  | The border space on the top edge of 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.Bottom |  | The border space on the bottom edge of the associated control.
TControl.BorderSpacing |  | Determines the inner and outer border spacing for this control.
TAnchorKind |  | The control side to be anchored.