WebBrowser Class

Definition

Represents a Windows Forms WebBrowser that can be added to a Microsoft Office Word document.

public ref class WebBrowser : System::Windows::Forms::WebBrowser
[System.ComponentModel.DefaultEvent("DocumentCompleted")]
[System.ComponentModel.DefaultProperty("Url")]
[System.ComponentModel.ToolboxItem(false)]
public class WebBrowser : System.Windows.Forms.WebBrowser
[<System.ComponentModel.DefaultEvent("DocumentCompleted")>]
[<System.ComponentModel.DefaultProperty("Url")>]
[<System.ComponentModel.ToolboxItem(false)>]
type WebBrowser = class
    inherit WebBrowser
Public Class WebBrowser
Inherits WebBrowser
Inheritance
WebBrowser
Attributes

Remarks

The Microsoft.Office.Tools.Word.Controls.WebBrowser is different from a System.Windows.Forms.WebBrowser. The Microsoft.Office.Tools.Word.Controls.WebBrowser has additional members that enable it to be added to a Word document and that give it additional methods and properties.

Do not use the constructor to create a new WebBrowser. Use the AddWebBrowser method to add a new WebBrowser to a document.

Properties

AltHTML
Automation
Bottom

Gets the distance, in points, between the bottom edge of the WebBrowser and the top edge of the document.

Height

Gets or sets the height of the WebBrowser.

InlineShape

Gets the underlying InlineShape of the WebBrowser.

Left

Gets or sets the distance, in points, between the left edge of the WebBrowser and the left edge of the document.

Right

Gets the distance, in points, between the right edge of the WebBrowser and the left edge of the document.

Shape

Gets the underlying Shape of the WebBrowser.

Top

Gets or sets the distance, in points, between the top edge of the WebBrowser and the top edge of the document.

Width

Gets or sets the width of the WebBrowser in points.

Methods

Activate()

Activates the WebBrowser.

Delete()

Deletes a dynamically created WebBrowser from the document and removes it from the ControlCollection.

Select()

Selects the WebBrowser.

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
SetVisibleCore(Boolean)
WndProc(Message)

Processes Windows messages.

Applies to