Compartir a través de


IVsFindTarget2.NavigateTo2 Method

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)

Syntax

'Declaration
Function NavigateTo2 ( _
    pSpans As IVsTextSpanSet, _
    iSelMode As TextSelMode _
) As Integer
int NavigateTo2(
    IVsTextSpanSet pSpans,
    TextSelMode iSelMode
)
int NavigateTo2(
    [InAttribute] IVsTextSpanSet^ pSpans, 
    [InAttribute] TextSelMode iSelMode
)
abstract NavigateTo2 : 
        pSpans:IVsTextSpanSet * 
        iSelMode:TextSelMode -> int
function NavigateTo2(
    pSpans : IVsTextSpanSet, 
    iSelMode : TextSelMode
) : int

Parameters

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsFindTarget2 Interface

Microsoft.VisualStudio.TextManager.Interop Namespace