FMX.WebBrowser.TCustomWebBrowser.LoadFromStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromStrings(const AContent: string; const ABaseUrl: string); overload;
procedure LoadFromStrings(const AContent: string; const AContentEncoding: TEncoding; const ABaseUrl: string); overload;

C++

void __fastcall LoadFromStrings(const System::UnicodeString AContent, const System::UnicodeString ABaseUrl)/* overload */;
void __fastcall LoadFromStrings(const System::UnicodeString AContent, System::Sysutils::TEncoding* const AContentEncoding, const System::UnicodeString ABaseUrl)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.WebBrowser.pas
FMX.WebBrowser.hpp
FMX.WebBrowser TCustomWebBrowser

Description

Displays HTML string content within the TWebBrowser component.

This method uses the following parameters:

  • Content: specifies the HTML string to be displayed.
  • BaseUrl: specifies a path that is used to resolve relative URLs within the loaded page. To clarify, consider the following scenario: this parameter is set to www.mycompany.com/departments/, and the loaded page defines a link <a href=’Sales.html’>Sales dept</a>. In the given case, clicking this link opens http:// www.mycompany.com/departments/Sales.html.

See Also