IVsFindTarget::NavigateTo Method (array<TextSpan>^)

 

Move to a specified location within a document.

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

int NavigateTo(
	array<TextSpan>^ pts
)

Parameters

pts
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

[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.

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 null, then simply activate the window.

Return to top
Show: