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
'Declaração
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
- 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.
Remarks
COM Signature
From textfind.idl:
HRESULT IVsFindTarget2::NavigateTo2(
[in] IVsTextSpanSet *pSpans,
[in] enum _TextSelMode iSelMode
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.