編輯

共用方式為


WebOptions.TargetBrowser Property

Definition

Sets or returns a constant representing the target browser for documents viewed in a Web browser.

public:
 property Microsoft::Office::Core::MsoTargetBrowser TargetBrowser { Microsoft::Office::Core::MsoTargetBrowser get(); void set(Microsoft::Office::Core::MsoTargetBrowser value); };
public Microsoft.Office.Core.MsoTargetBrowser TargetBrowser { get; set; }
member this.TargetBrowser : Microsoft.Office.Core.MsoTargetBrowser with get, set
Public Property TargetBrowser As MsoTargetBrowser

Property Value

Remarks

MsoTargetBrowser can be one of these MsoTargetBrowser constants:

msoTargetBrowserIE4 Microsoft Internet Explorer 4.0.

msoTargetBrowserIE5 Internet Explorer 5.

msoTargetBrowserIE6 Internet Explorer 6.

msoTargetBrowserV3 Netscape Navigator 3.x.

msoTargetBrowserV4 Netscape Navigator 4.x.

The TargetBrowser property sets the BrowserLevel property, but BrowserLevel is only important if the DisableFeatures property is set to True. Otherwise, it is ignored. The TargetBrowser property, however, is not ignored and sets the browser level for all Web documents or for a single Web document.

Applies to