IVsFindTarget.NavigateTo Method
Move to a specified location within a document.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function NavigateTo ( _
pts As TextSpan() _
) As Integer
'使用
Dim instance As IVsFindTarget
Dim pts As TextSpan()
Dim returnValue As Integer
returnValue = instance.NavigateTo(pts)
int NavigateTo(
TextSpan[] pts
)
int NavigateTo(
[InAttribute] array<TextSpan>^ pts
)
function NavigateTo(
pts : TextSpan[]
) : int
Parameters
pts
Type: [][in] Specifies the location of a span of text. Values are contained in a TextSpan structure.
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 textmgr.idl:
HRESULT IVsFindTarget::NavigateTo(
[in] const TextSpan * pts
);
The environment calls NavigateTo to advise you to move to the specified location in your document, and display the result within your doc window. If pts is equal to a null reference (Nothing in Visual Basic), then simply activate the window.
Permissions
- 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.