RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebControlGroup.Content Method

Returns the HTML that defines the group of HTML controls.

Pascal
function Content(Options: TWebContentOptions; ParentLayout: TLayout): string;
C++
__fastcall AnsiString Content(TWebContentOptions Options, TLayout ParentLayout);

Content implements the IWebContent method of the same name. This method allows the TWebControlGroup object's parent to extract the HTML that defines and lays out a set of controls. 

Content calls the virtual ImplContent method to provide the HTML it returns. Each TWebControlGroup descendant overrides ImplContent to generate its particular group of controls. The generated HTML can make use of any script declarations supplied by the AddElements method. 

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

ParentLayout specifies a helper object that the caller supplies for determining how the component should format the HTML it generates. It implements the ILayoutWebContent interface. 

Content returns a string of HTML defining the group of controls. 

 

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