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

‘선언
Function OpenCopyOfStandardEditor ( _
    pWindowFrame As IVsWindowFrame, _
    ByRef rguidLogicalView As Guid, _
    <OutAttribute> ByRef ppNewWindowFrame As IVsWindowFrame _
) As Integer
‘사용 방법
Dim instance As IVsUIShellOpenDocument
Dim pWindowFrame As IVsWindowFrame
Dim rguidLogicalView As Guid
Dim ppNewWindowFrame As IVsWindowFrame
Dim returnValue As Integer

returnValue = instance.OpenCopyOfStandardEditor(pWindowFrame, _
    rguidLogicalView, ppNewWindowFrame)
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

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

IVsUIShellOpenDocument Members

Microsoft.VisualStudio.Shell.Interop Namespace