Export (0) Print
Expand All

IVsEditorFactoryChooser.ChooseEditorFactory Method

Chooses the correct editor factory.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int ChooseEditorFactory(
	string pszMkDocument,
	IVsHierarchy pHier,
	uint itemid,
	IntPtr punkDocDataExisting,
	ref Guid rguidLogicalView,
	out Guid pguidEditorTypeActual,
	out 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

Community Additions

ADD
Show:
© 2014 Microsoft