VsShellUtilities.OpenDocumentWithSpecificEditor Method (IServiceProvider, String, Guid, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame)

 

Opens the specified document by using the specified editor.

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

public static void OpenDocumentWithSpecificEditor(
	IServiceProvider provider,
	string fullPath,
	Guid editorType,
	Guid logicalView,
	out IVsUIHierarchy hierarchy,
	out uint itemID,
	out IVsWindowFrame windowFrame
)

Parameters

provider
Type: System.IServiceProvider

IServiceProvider.

fullPath
Type: System.String

The absolute path of the document.

editorType
Type: System.Guid

The GUID of the type of editor to use.

logicalView
Type: System.Guid

The GUID of the logical view in which to open the document.

hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy

[out] The IVsUIHierarchy interface of the project that contains the document.

itemID
Type: System.UInt32

[out] The item ID of the document.

windowFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame

[out] The IVsWindowFrame interface of the window in which the document is opened.

Return to top
Show: