RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebDataDisplay.ControlContent Method

Returns the HTML that defines the display control (without its caption).

Pascal
function ControlContent(Options: TWebContentOptions): string; virtual; abstract;
C++
virtual __fastcall AnsiString ControlContent(TWebContentOptions Options) = 0;

ControlContent is used internally to generate the HTML for the display control. This method does not generate any HTML for the control's label, which is handled separately by the FormatCaption method. 

TWebDataDisplay introduces ControlContent as an abstract (pure virtual) method. Descendant classes override this method to generate the appropriate type of display component. 

Options contains a set of flags that limit what can be included in the generated HTML. 

ControlContent returns a string of HTML defining the display control. 

 

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