Click or drag to resize

HtmlString Class

Version 130.1.90
Represents an raw Html (not already encoded) When passed to a ChromiumWebBrowser constructor, the html will be converted to a Data Uri and loaded in the browser. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs for details
Inheritance Hierarchy
SystemObject
  CefSharp.WebHtmlString

Namespace: CefSharp.Web
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class HtmlString

The HtmlString type exposes the following members.

Constructors
 NameDescription
Public methodHtmlString Initializes a new instance of the HtmlString class.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromFile Creates a HtmlString for the given file name Uses ReadAllText(String, Encoding) to read the text using UTF8 encoding.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToDataUriString The html as a Data Uri encoded string
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic member(String to HtmlString) HtmlString that will be base64 encoded
Top
See Also