FMX.WebBrowser.TCustomWebBrowser.LoadFromStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromStrings(const Content: string; const BaseUrl: string);

C++

void __fastcall LoadFromStrings(const System::UnicodeString Content, const System::UnicodeString BaseUrl);

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