RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ILayoutWebContent.LayoutLabelAndField Method

Converts the HTML declaring a labeled field into a form the Web item's parent can use.

Pascal
function LayoutLabelAndField(const HTMLLabel: string; const HTMLField: string; Attributes: TLayoutAttributes): string;
C++
__fastcall AnsiString LayoutLabelAndField(const AnsiString HTMLLabel, const AnsiString HTMLField, TLayoutAttributes Attributes);

Call LayoutLabelAndField to convert the HTML that declares a labeled field (an input control that represents a data field or a named value along with its label) into the form required by the Web item's parent. 

HTMLLabel is the HTML that declares the label. This is produced by the Web item. 

HTMLField is the HTML that declares the field. This is produced by the Web item. 

Attributes describes any style attributes or layout considerations that should be applied to the final HTML for the field and its label. 

LayoutLabelAndField returns the HTML for the field and label in a form that can be used by the Web item's parent. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!