IVsTextManager2.NavigateToPosition2 Method

Definition

Moves to the specified position.

C++
public:
 int NavigateToPosition2(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, Guid % guidDocViewType, int iPos, int iLen, System::UInt32 grfIncludeViewFrameType);

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

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022