Click or drag to resize

ResourceHandlerFromString(String, Encoding, Boolean, String) Method

Version 130.1.90
Gets a ResourceHandler that represents a string. Without a Preamble, Cef will use BrowserSettings.DefaultEncoding to load the html.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public static IResourceHandler FromString(
	string text,
	Encoding encoding = null,
	bool includePreamble = true,
	string mimeType = "text/html"
)

Parameters

text  String
The html string
encoding  Encoding  (Optional)
Character Encoding
includePreamble  Boolean  (Optional)
Include encoding preamble
mimeType  String  (Optional)
Mime Type

Return Value

IResourceHandler
ResourceHandler
See Also