Sign in Join
FPDoc Onlineexperiment

TCustomLabel.GetLabelText function

Member of TCustomLabelprotectedIn unit StdCtrls

Returns the string value in the Caption for the control.

Declaration

pascal
function GetLabelText: string; virtual

Function result

Text displayed in the control.

Description

The string function GetLabelText provides the text to be displayed by the label. It extracts the string from the Caption property of the control.

When the label is rotated (Font.Orientation <> 0) and the ShowAccelChar property is True, ampersand characters ('&') are removed from the text because underlining of the acceleration keys is not supported for rotated text.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.