Skybound.Gecko.GeckoWebBrowser.LoadHtml C# (CSharp) Méthode

LoadHtml() public méthode

Loads supplied html string. Note: LoadHtml isn't intended to load complex Html Documents. In order to find out when LoadHtml has finished attach a handler to NavigateFinishedNotifier.NavigateFinished.
public LoadHtml ( string htmlDocument ) : void
htmlDocument string
Résultat void
        public void LoadHtml(string htmlDocument)
        {
            var bytes = System.Text.Encoding.UTF8.GetBytes(htmlDocument);
            Navigate(string.Format("data:text/html;base64,{0}", Convert.ToBase64String(bytes)));
        }