Freigeben über


IVsTextManager2.NavigateToPosition2 Method

Definition

Moves to the specified position.

public:
 int NavigateToPosition2(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, Guid % guidDocViewType, int iPos, int iLen, System::UInt32 grfIncludeViewFrameType);
public int NavigateToPosition2 (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, ref Guid guidDocViewType, int iPos, int iLen, uint grfIncludeViewFrameType);
abstract member NavigateToPosition2 : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Guid * int * int * uint32 -> int
Public Function NavigateToPosition2 (pBuffer As IVsTextBuffer, ByRef guidDocViewType As Guid, iPos As Integer, iLen As Integer, grfIncludeViewFrameType As UInteger) As Integer

Parameters

pBuffer
IVsTextBuffer

[in] The text buffer.

guidDocViewType
Guid

[in] GUID of the document view type.

iPos
Int32

[in] The position to move to.

iLen
Int32

[in] The length.

grfIncludeViewFrameType
UInt32

[in] Indicates the include view frame type. For more information, see _VIEWFRAMETYPE.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to