Udostępnij za pośrednictwem


VsShellUtilities.OpenDocumentWithSpecificEditor Method

Definition

Overloads

OpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid)

Opens the specified document by using the specified editor.

OpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame)

Opens the specified document by using the specified editor.

OpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid)

Opens the specified document by using the specified editor.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ OpenDocumentWithSpecificEditor(IServiceProvider ^ provider, System::String ^ fullPath, Guid editorType, Guid logicalView);
public static Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame OpenDocumentWithSpecificEditor (IServiceProvider provider, string fullPath, Guid editorType, Guid logicalView);
static member OpenDocumentWithSpecificEditor : IServiceProvider * string * Guid * Guid -> Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
Public Shared Function OpenDocumentWithSpecificEditor (provider As IServiceProvider, fullPath As String, editorType As Guid, logicalView As Guid) As IVsWindowFrame
Public Function OpenDocumentWithSpecificEditor (provider As IServiceProvider, fullPath As String, editorType As Guid, logicalView As Guid) As IVsWindowFrame

Parameters

provider
IServiceProvider

The service provider.

fullPath
String

Full path to the document.

editorType
Guid

Unique identifier of the editor type.

logicalView
Guid

In MultiView case determines view to be activated by IVsMultiViewDocumentView. For a list of logical view GUIDS, see constants starting with LOGVIEWID_ defined in NativeMethods class

Returns

A reference to the window frame that is mapped to the document.

Applies to

OpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame)

Opens the specified document by using the specified editor.

public:
 static void OpenDocumentWithSpecificEditor(IServiceProvider ^ provider, System::String ^ fullPath, Guid editorType, Guid logicalView, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ % hierarchy, [Runtime::InteropServices::Out] System::UInt32 % itemID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ % windowFrame);
public static void OpenDocumentWithSpecificEditor (IServiceProvider provider, string fullPath, Guid editorType, Guid logicalView, out Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy hierarchy, out uint itemID, out Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame windowFrame);
static member OpenDocumentWithSpecificEditor : IServiceProvider * string * Guid * Guid * IVsUIHierarchy * uint32 * IVsWindowFrame -> unit
Public Shared Sub OpenDocumentWithSpecificEditor (provider As IServiceProvider, fullPath As String, editorType As Guid, logicalView As Guid, ByRef hierarchy As IVsUIHierarchy, ByRef itemID As UInteger, ByRef windowFrame As IVsWindowFrame)
Public Sub OpenDocumentWithSpecificEditor (provider As IServiceProvider, fullPath As String, editorType As Guid, logicalView As Guid, ByRef hierarchy As IVsUIHierarchy, ByRef itemID As UInteger, ByRef windowFrame As IVsWindowFrame)

Parameters

provider
IServiceProvider

The service provider.

fullPath
String

Full path to the document.

editorType
Guid

Unique identifier of the editor type.

logicalView
Guid

In MultiView case determines view to be activated by IVsMultiViewDocumentView. For a list of logical view GUIDS, see constants starting with LOGVIEWID_ defined in NativeMethods class

hierarchy
IVsUIHierarchy

Reference to the IVsUIHierarchy interface of the project that can open the document.

itemID
UInt32

Reference to the hierarchy item identifier of the document in the project.

windowFrame
IVsWindowFrame

A reference to the window frame that is mapped to the document.

Applies to