iesnifferautofilluserinfo Fill method
Return to Introduction  Previous page  Next page
Applies to
IESnifferAutoFillUserInfo component.  

Declaration
procedure Fill(const Browser: IWebBrowser2; BackgroundColor: TColor = clNone; TextColor: TColor = clNone;  
  HighlightOnly: Boolean = False; ScanFrames: Boolean = True); overload;  
 
procedure Fill(const Document: IHTMLDocument2; BackgroundColor: TColor = clNone; TextColor: TColor = clNone;  
  HighlightOnly: Boolean = False; ScanFrames: Boolean = True); overload;  

Description
The Fill method used to mark or fill the fields of the Web forms with text specified in Fields structure.  
 
Browser (or Document) parameter points to the interface which holds the web page.  
 
BackgroundColor and TextColor is the optional parameters used to specify custom background and text colors for marked form fields.  
 
HighlightOnly parameter can be set to True, if you just want to highlight fields which could be filled, without filling them.  
 
ScanFrames is also optional parameter, which specifies whether the method should scan all frames inside the specified Browser interface or Document.  

Example
procedure TIEBandForm.AutoFillBtnClick(Sender: TObject);  
begin  
  IESnifferAutoFillUserInfo1.Fill(FBrowser);  
end;  

See also
AutoFill, AutoHighlight, HighlightColor, HighlightTextColor and Fields properties;  
IESniffer component.