Partager via


IVsEditorFactoryChooser.ChooseEditorFactory Method

Definition

Chooses the correct editor factory.

public:
 int ChooseEditorFactory(System::String ^ pszMkDocument, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, IntPtr punkDocDataExisting, Guid % rguidLogicalView, [Runtime::InteropServices::Out] Guid % pguidEditorTypeActual, [Runtime::InteropServices::Out] Guid % pguidLogicalViewActual);
public int ChooseEditorFactory (string pszMkDocument, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, ref Guid rguidLogicalView, out Guid pguidEditorTypeActual, out Guid pguidLogicalViewActual);
abstract member ChooseEditorFactory : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * nativeint * Guid * Guid * Guid -> int
Public Function ChooseEditorFactory (pszMkDocument As String, pHier As IVsHierarchy, itemid As UInteger, punkDocDataExisting As IntPtr, ByRef rguidLogicalView As Guid, ByRef pguidEditorTypeActual As Guid, ByRef pguidLogicalViewActual As Guid) As Integer

Parameters

pszMkDocument
String

[in] The name of the document to check.

pHier
IVsHierarchy

[in] The solution that contains the document.

itemid
UInt32

[in] Internal ID of the document.

punkDocDataExisting
IntPtr

nativeint

[in] Either a doc data object or DOCDATAEXISTING_UNKNOWN (defined in vsshell.idl, or in managed languages an IntPtr to -1), in which case check for the document in the running document table.

rguidLogicalView
Guid

[in] The GUID of the object used for the document.

pguidEditorTypeActual
Guid

[out] The GUID of the type chosen.

pguidLogicalViewActual
Guid

[out] The GUID of the logical viewer object to use.

Returns

Applies to