Udostępnij za pośrednictwem


IVsFindTarget2.NavigateTo2(IVsTextSpanSet, TextSelMode) Method

Definition

Move to a specified location within a document.

public:
 int NavigateTo2(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet ^ pSpans, Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public:
 int NavigateTo2(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet ^ pSpans, Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
int NavigateTo2(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet const & pSpans, Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public int NavigateTo2 (Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet pSpans, Microsoft.VisualStudio.TextManager.Interop.TextSelMode iSelMode);
abstract member NavigateTo2 : Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet * Microsoft.VisualStudio.TextManager.Interop.TextSelMode -> int
Public Function NavigateTo2 (pSpans As IVsTextSpanSet, iSelMode As TextSelMode) As Integer

Parameters

pSpans
IVsTextSpanSet

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

iSelMode
TextSelMode

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

Returns

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

Remarks

COM Signature

From textfind.idl:

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

Applies to