RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebDataDisplay.FormatCaption Method

Returns the HTML for the display control's caption.

Pascal
function FormatCaption: string; virtual;
C++
virtual __fastcall AnsiString FormatCaption();

FormatCaption generates the HTML for the display control's caption, using the attributes specified by the CaptionAttributes property. FormatCaption returns the resulting string of HTML. 

In addition, FormatCaption encodes the layout properties of the caption and the value of the CaptionPosition property into the LayoutAttributes property. The TWebDataDisplay component uses this value later to lay out the control and its caption appropriately. 

 

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