Share via


IVsUIShellOpenDocument.OpenCopyOfStandardEditor Method

Used to implement Window.NewWindow functionality.

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

Syntax

'Declaration
Function OpenCopyOfStandardEditor ( _
    pWindowFrame As IVsWindowFrame, _
    ByRef rguidLogicalView As Guid, _
    <OutAttribute> ByRef ppNewWindowFrame As IVsWindowFrame _
) As Integer
int OpenCopyOfStandardEditor(
    IVsWindowFrame pWindowFrame,
    ref Guid rguidLogicalView,
    out IVsWindowFrame ppNewWindowFrame
)
int OpenCopyOfStandardEditor(
    [InAttribute] IVsWindowFrame^ pWindowFrame, 
    [InAttribute] Guid% rguidLogicalView, 
    [OutAttribute] IVsWindowFrame^% ppNewWindowFrame
)
abstract OpenCopyOfStandardEditor : 
        pWindowFrame:IVsWindowFrame * 
        rguidLogicalView:Guid byref * 
        ppNewWindowFrame:IVsWindowFrame byref -> int
function OpenCopyOfStandardEditor(
    pWindowFrame : IVsWindowFrame, 
    rguidLogicalView : Guid, 
    ppNewWindowFrame : IVsWindowFrame
) : int

Parameters

  • rguidLogicalView
    Type: System.Guid%

    [in] GUID identifying the logical view. For a list of logical view GUIDS, see Logical View and Physical View.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShellOpenDocument::OpenCopyOfStandardEditor(
   [in] IVsWindowFrame *pWindowFrame,
   [in] REFGUID rguidLogicalView,
   [out, retval] IVsWindowFrame **ppNewWindowFrame
);

Editors should handle cmdidNewWindow command by calling this method.

.NET Framework Security

See Also

Reference

IVsUIShellOpenDocument Interface

Microsoft.VisualStudio.Shell.Interop Namespace