IVsUIShellOpenDocument Interface

Controls the state of open documents within the environment.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface IVsUIShellOpenDocument

The IVsUIShellOpenDocument type exposes the following members.

Public methodAddStandardPreviewerAdds a Web browser to the list of available previewers.
Public methodGetFirstDefaultPreviewerReturns the .exe file path of the first default web browser.
Public methodGetStandardEditorFactoryReturns the editor factory associated with a specific document (for example, a file type).
Public methodInitializeEditorInstanceInitializes an instance of the document editor.
Public methodIsDocumentInAProjectDetermines whether a document is part of the project.
Public methodIsDocumentOpenDetermines whether a document is currently open.
Public methodIsSpecificDocumentViewOpenDetermines whether a specified document view is open.
Public methodMapLogicalViewMaps a physical view to a logical view.
Public methodOpenCopyOfStandardEditorUsed to implement Window.NewWindow functionality.
Public methodOpenDocumentViaProjectFinds an appropriate project to open the document.
Public methodOpenDocumentViaProjectWithSpecificFinds a specified project to open this document.
Public methodOpenSpecificEditorOpens a specified editor.
Public methodOpenStandardEditorOpens the standard editor.
Public methodOpenStandardPreviewerOpens a standard web browser for the specified document.
Public methodSearchProjectsForRelativePathConverts a relative path for a document to an absolute path that can be passed to OpenDocumentViaProject.

See also SVsUIShellOpenDocument service.

To provisionally open a document in the Visual Studio preview tab, use methods on this interface from within a using statement in conjunction with the NewDocumentStateScope class, or use the SetNewDocumentState method.

Notes to Callers

Call to determine whether a document is open, to open a document using various editors, or to preview a document.