Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ChooseEditorFactory Method
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft