IVsUIShellOpenDocument 接口

控件状态在环境中打开文档。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
<GuidAttribute("35299EEC-11EE-4518-9F08-401638D1D3BC")> _
<InterfaceTypeAttribute()> _
Public Interface IVsUIShellOpenDocument
[GuidAttribute("35299EEC-11EE-4518-9F08-401638D1D3BC")]
[InterfaceTypeAttribute()]
public interface IVsUIShellOpenDocument

IVsUIShellOpenDocument 类型公开以下成员。

方法

  名称 说明
公共方法 AddStandardPreviewer 添加 web 浏览器为可用 previewers 列表。
公共方法 GetFirstDefaultPreviewer 返回第一个默认浏览器的 .exe 文件路径。
公共方法 GetStandardEditorFactory 返回例如工厂与特定文件的编辑器 (,文件类型)。
公共方法 InitializeEditorInstance 初始化文档编辑器的实例。
公共方法 IsDocumentInAProject 确定文档是否是项目的一部分。
公共方法 IsDocumentOpen 确定文档是否当前打开。
公共方法 IsSpecificDocumentViewOpen 确定指定的是否文档视图是打开的。
公共方法 MapLogicalView 映射一个物理视图到逻辑视图。
公共方法 OpenCopyOfStandardEditor 用于实现 Window.NewWindow 功能。
公共方法 OpenDocumentViaProject 查找相应的项目打开文档。
公共方法 OpenDocumentViaProjectWithSpecific 查找打开一个指定的项目本文档。
公共方法 OpenSpecificEditor 打开一个指定编辑器。
公共方法 OpenStandardEditor 打开标准编辑。
公共方法 OpenStandardPreviewer 打开的一个标准浏览器指定文档。
公共方法 SearchProjectsForRelativePath 将文档的相对路径转换为可传递到 OpenDocumentViaProject的绝对路径。

页首

备注

请参见 SVsUIShellOpenDocument 服务。

对调用者的说明

调用确定文档是否是打开的,使用各种编辑器中,打开文档,或者预览文档。

请参见

参考

Microsoft.VisualStudio.Shell.Interop 命名空间