RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.DisplayText Property

Represents the field's value as it is displayed in a data-aware control.

Pascal
property DisplayText: string;
C++
__property AnsiString DisplayText;

DisplayText is a read-only string representation of a field's value for displaying in data-aware controls. It represents the field's value when it is not being edited. When the field is being edited, use the Text property. 

If the field has an OnGetText event handler, DisplayText is the value returned in the Text parameter of the OnGetText event handler when its DisplayText parameter is true. Otherwise, DisplayText is the value of the AsString property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!