IVsTextManager2::NavigateToPosition2 Method (IVsTextBuffer^, Guid, Int32, Int32, UInt32)

 

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)

int NavigateToPosition2(
	IVsTextBuffer^ pBuffer,
	[InAttribute] Guid% guidDocViewType,
	int iPos,
	int iLen,
	unsigned int grfIncludeViewFrameType
)

Parameters

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^

[in] The text buffer.

guidDocViewType
Type: System::Guid

[in] GUID of the document view type.

iPos
Type: System::Int32

[in] The position to move to.

iLen
Type: System::Int32

[in] The length.

grfIncludeViewFrameType
Type: System::UInt32

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

Return Value

Type: System::Int32

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

Return to top
Show: