src/modules/previewpane/SvgPreviewHandler/SvgPreviewControl.cs
/// <summary>
/// Adds a Web Browser Control to Control Collection.
/// </summary>
/// <param name="svgData">Svg to display on Browser Control.</param>
Adds a Web Browser Control to Control Collection.
Adds a Web Browser Control to Control Collection .
private void AddBrowserControl(string svgData)
        {
            this.browser = new WebBrowserExt();
            this.browser.DocumentText = svgData;
            this.browser.Dock = DockStyle.Fill;
            this.browser.IsWebBrowserContextMenuEnabled = false;
            this.browser.ScriptErrorsSuppressed = true;
            this.browser.ScrollBarsEnabled = true;
            this.browser.AllowNavigation = false;
            this.Controls.Add(this.browser);
        }
private void AddBrowserControl ( string svgData ) { this . browser = new WebBrowserExt ( ) ; this . browser . DocumentText = svgData ; this . browser . Dock = DockStyle . Fill ; this . browser . IsWebBrowserContextMenuEnabled = false ; this . browser . ScriptErrorsSuppressed = true ; this . browser . ScrollBarsEnabled = true ; this . browser . AllowNavigation = false ; this . Controls . Add ( this . browser ) ; }
Adds a Web Browser Control to Control Collection.
Adds a Web Browser Control to Control Collection .
svgData
string
Svg to display on Browser Control.
Svg to display on Browser Control .