Partager via


IVsUIShellOpenDocument3 Interface

Controls the state of open documents within the environment.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("E6A63A28-154C-42CB-A6E7-9252C2E6D943")> _
Public Interface IVsUIShellOpenDocument3
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("E6A63A28-154C-42CB-A6E7-9252C2E6D943")]
public interface IVsUIShellOpenDocument3
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"E6A63A28-154C-42CB-A6E7-9252C2E6D943")]
public interface class IVsUIShellOpenDocument3
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("E6A63A28-154C-42CB-A6E7-9252C2E6D943")>]
type IVsUIShellOpenDocument3 =  interface end
public interface IVsUIShellOpenDocument3

The IVsUIShellOpenDocument3 type exposes the following members.

Properties

  Name Description
Public property DocumentPreviewersEnum Gets an interface that can be used to enumerate the available document previewers.
Public property FirstDefaultPreviewer Returns an interface that obtains information about the first default previewer, for example, path, arguments, and browser type.
Public property NewDocumentState Gets the current state of new documents.

Top

Methods

  Name Description
Public method GetProvisionalViewingStatusForEditor Retrieves the provisional viewing status for an editor and logical view combination.
Public method GetProvisionalViewingStatusForFile Retrieves the provisional viewing status for the highest ranked editor associated with the file.
Public method SetDefaultPreviewer Allows setting a previewer as default, either exclusive or in addition to the existing previewers. The previewer must be one of the available previewers.
Public method SetNewDocumentState Determines whether, on subsequent documents open calls like OpenStandardEditor, the document will be opened provisionally or permanently. Allows an entity that is far removed from the IVsUIShellOpenDocument calls that opened a document to control how it is opened–provisionally or permanently.

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace