IVsFindTarget2::NavigateTo2 Method (IVsTextSpanSet^, TextSelMode)

 

Move to a specified location within a document.

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

int NavigateTo2(
	IVsTextSpanSet^ pSpans,
	TextSelMode iSelMode
)

Parameters

pSpans
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextSpanSet^

[in] optional - Set of text spans describing the match GetTaggedSpans

iSelMode
Type: Microsoft.VisualStudio.TextManager.Interop::TextSelMode

[in] Set selection to box or stream. Values are taken from TextSelMode.

Return Value

Type: System::Int32

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

From textfind.idl:

HRESULT IVsFindTarget2::NavigateTo2(
   [in] IVsTextSpanSet *pSpans,
   [in] enum _TextSelMode iSelMode
);
Return to top
Show: