VsTextManagerClass::NavigateToPosition Method (IVsTextBuffer^, Guid, Int32, Int32)
Visual Studio 2015
Finds or creates an appropriate view on the specified buffer and puts the selection on the specified linear position.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int NavigateToPosition( IVsTextBuffer^ pBuffer, [InAttribute] Guid% guidDocViewType, int iPos, int iLen )
Parameters
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
[in] Pointer to the IVsTextBuffer interface.
- guidDocViewType
-
Type:
System::Guid
[in] GUID identifying the view. This value should always be LOGVIEWID_TextView.
- iPos
-
Type:
System::Int32
[in] Linear position in buffer on which to put the caret.
- iLen
-
Type:
System::Int32
[in] Length of selection.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: