# LoadFromString Method

## Applies to

THtmlViewer component

## Declaration

procedure LoadFromString(const S: ThtString; const Reference: ThtString = ''; DocType: THtmlFileType = HtmlType);

## Description

The LoadFromString method loads a document of the given type from a string.

Reference is an optional reference parameter.

## See also

- LoadFromDocument Method
- LoadFromFile Method
- LoadFromStream Method