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

# TCustomStaticText.BorderStyle

The border drawn around the control.

## Declaration

Source position: stdctrls.pp line 1112

`public property TCustomStaticText.BorderStyle : TStaticBorderStyle read FStaticBorderStyle write SetStaticBorderStyle default sbsNone;`

## Description

BorderStyle is a TStaticBorderStyle property in TCustomStaticText. it contains the line style used to draw the borders around the static text control. It allows an additional border style (sbsSunken) that is not available in its TBorderStyle counterpart.

The default value for the property is sbsNone. Changing the value for the property causes the widgetset class instance to be updated and optionally resized when its Handle has been allocated.

## See also

TStaticBorderStyle |  | Contains border styles used for static text controls.
TBorderStyle |  | Possible types of borders (with or without border).
TWinControl.BorderStyle |  | Indicates the border style displayed around the control.
TControl.AutoSize |  | Allows automatic adjustment of the size for the control, according to its content.