IVsEditorFactoryChooser::ChooseEditorFactory Method (String^, IVsHierarchy^, UInt32, IntPtr, Guid, Guid, Guid)
Visual Studio 2015
Chooses the correct editor factory.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int ChooseEditorFactory( String^ pszMkDocument, IVsHierarchy^ pHier, unsigned int itemid, IntPtr punkDocDataExisting, [InAttribute] Guid% rguidLogicalView, [OutAttribute] Guid% pguidEditorTypeActual, [OutAttribute] Guid% pguidLogicalViewActual )
Parameters
- pszMkDocument
-
Type:
System::String^
[in] The name of the document to check.
- pHier
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] The solution that contains the document.
- itemid
-
Type:
System::UInt32
[in] Internal ID of the document.
- punkDocDataExisting
-
Type:
System::IntPtr
[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
-
Type:
System::Guid
[in] The GUID of the object used for the document.
- pguidEditorTypeActual
-
Type:
System::Guid
[out] The GUID of the type chosen.
- pguidLogicalViewActual
-
Type:
System::Guid
[out] The GUID of the logical viewer object to use.
Return Value
Type: System::Int32
Show: