WebOptions.TargetBrowser Property

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property TargetBrowser As MsoTargetBrowser
    Get
    Set
'Usage
Dim instance As WebOptions
Dim value As MsoTargetBrowser

value = instance.TargetBrowser

instance.TargetBrowser = value
MsoTargetBrowser TargetBrowser { get; set; }

Property Value

Type: MsoTargetBrowser

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.

See Also

Reference

WebOptions Interface

WebOptions Members

Microsoft.Office.Interop.Word Namespace