Dela via


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)

Syntax

'Declaration
Function ChooseEditorFactory ( _
    pszMkDocument As String, _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    punkDocDataExisting As IntPtr, _
    ByRef rguidLogicalView As Guid, _
    <OutAttribute> ByRef pguidEditorTypeActual As Guid, _
    <OutAttribute> ByRef pguidLogicalViewActual As Guid _
) As Integer
int ChooseEditorFactory(
    string pszMkDocument,
    IVsHierarchy pHier,
    uint itemid,
    IntPtr punkDocDataExisting,
    ref Guid rguidLogicalView,
    out Guid pguidEditorTypeActual,
    out Guid pguidLogicalViewActual
)
int ChooseEditorFactory(
    [InAttribute] String^ pszMkDocument, 
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] IntPtr punkDocDataExisting, 
    [InAttribute] Guid% rguidLogicalView, 
    [OutAttribute] Guid% pguidEditorTypeActual, 
    [OutAttribute] Guid% pguidLogicalViewActual
)
abstract ChooseEditorFactory : 
        pszMkDocument:string * 
        pHier:IVsHierarchy * 
        itemid:uint32 * 
        punkDocDataExisting:IntPtr * 
        rguidLogicalView:Guid byref * 
        pguidEditorTypeActual:Guid byref * 
        pguidLogicalViewActual:Guid byref -> int
function ChooseEditorFactory(
    pszMkDocument : String, 
    pHier : IVsHierarchy, 
    itemid : uint, 
    punkDocDataExisting : IntPtr, 
    rguidLogicalView : Guid, 
    pguidEditorTypeActual : Guid, 
    pguidLogicalViewActual : Guid
) : int

Parameters

  • pszMkDocument
    Type: String

    [in] The name of the document to check.

  • itemid
    Type: UInt32

    [in] Internal ID of the document.

  • punkDocDataExisting
    Type: 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: Guid%

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

  • pguidEditorTypeActual
    Type: Guid%

    [out] The GUID of the type chosen.

  • pguidLogicalViewActual
    Type: Guid%

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

Return Value

Type: Int32

.NET Framework Security

See Also

Reference

IVsEditorFactoryChooser Interface

Microsoft.VisualStudio.Shell.Interop Namespace