Share via


IVsTextManager2.NavigateToPosition2 Method

Moves to the specified position.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function NavigateToPosition2 ( _
    pBuffer As IVsTextBuffer, _
    ByRef guidDocViewType As Guid, _
    iPos As Integer, _
    iLen As Integer, _
    grfIncludeViewFrameType As UInteger _
) As Integer
int NavigateToPosition2(
    IVsTextBuffer pBuffer,
    ref Guid guidDocViewType,
    int iPos,
    int iLen,
    uint grfIncludeViewFrameType
)
int NavigateToPosition2(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] Guid% guidDocViewType, 
    [InAttribute] int iPos, 
    [InAttribute] int iLen, 
    [InAttribute] unsigned int grfIncludeViewFrameType
)
abstract NavigateToPosition2 : 
        pBuffer:IVsTextBuffer * 
        guidDocViewType:Guid byref * 
        iPos:int * 
        iLen:int * 
        grfIncludeViewFrameType:uint32 -> int
function NavigateToPosition2(
    pBuffer : IVsTextBuffer, 
    guidDocViewType : Guid, 
    iPos : int, 
    iLen : int, 
    grfIncludeViewFrameType : uint
) : int

Parameters

  • guidDocViewType
    Type: System.Guid%

    [in] GUID of the document view type.

Return Value

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

.NET Framework Security

See Also

Reference

IVsTextManager2 Interface

Microsoft.VisualStudio.TextManager.Interop Namespace