Share via


WebBrowser Class

Definition

Represents a Windows Forms WebBrowser that can be added to a Microsoft Office Excel worksheet.

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.Excel.Controls.WebBrowser is different from a System.Windows.Forms.WebBrowser. The Microsoft.Office.Tools.Excel.Controls.WebBrowser has additional members that enable it to be added to an Excel worksheet and that give it additional methods and properties.

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

Properties

AltHTML
Application

Gets an Application object that represents the creator of the WebBrowser.

Border

Gets a Border that represents the border of the WebBrowser.

Bottom

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

BottomRightCell

Gets a Range object that represents the cell that lies under the lower-right corner of the WebBrowser.

Creator

Gets a value that indicates the application in which the WebBrowser was created.

Height

Gets or sets the height of the WebBrowser.

Index

Gets the index number of the WebBrowser within the collection of OLEObjects on the sheet.

Interior

Gets an Interior object that represents the interior of the WebBrowser.

Left

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

Locked

Gets or sets a value that indicates whether the WebBrowser can be modified at design time when the sheet is protected.

OLEType

Gets a value that represents the OLE object type.

OnAction
Parent

Gets the parent object for the WebBrowser.

Placement

Gets or sets an object that indicates the way the WebBrowser is attached to the cells below it.

PrintObject

Gets or sets a value that indicates whether the WebBrowser is printed when the worksheet is printed.

Right

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

ShapeRange

Gets a ShapeRange object that represents the WebBrowser.

SourceName

Gets or sets the link source name of the WebBrowser.

Top

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

TopLeftCell

Gets a Range object that represents the cell that lies under the upper-left corner of the WebBrowser.

Visible

Gets or sets a value that represents whether the WebBrowser is visible.

Width

Gets or sets the width of the WebBrowser in points.

ZOrder

Gets the z-order position of the WebBrowser.

Methods

Activate()

Activates the WebBrowser.

BringToFront()

Brings the WebBrowser to the front of the z-order.

CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the WebBrowser to the Clipboard as a picture.

Delete()

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

Select(Object)

Selects the WebBrowser.

SendToBack()

Sends the WebBrowser to the back of the z-order.

SetVisibleCore(Boolean)

Sets the WebBrowser to the specified visible state.

Update()
WndProc(Message)

Processes Windows messages.

Applies to