RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebButton.Content Method

Returns the HTML that defines the button control.

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

Content implements the IWebContent method of the same name. This method allows the Web button's parent to extract the HTML defining the button. 

Content calls the virtual ImplContent method to provide the content it returns. Each TWebButton descendant overrides ImplContent to generate the definition of its particular button control. 

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 Web button should format the HTML control it generates. It implements the ILayoutWebContent interface. 

Content returns a string of HTML defining the button control. 

 

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