Udostępnij za pośrednictwem


IVsFindTarget.NavigateTo(TextSpan[]) Method

Definition

Move to a specified location within a document.

public:
 int NavigateTo(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
public:
 int NavigateTo(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
int NavigateTo(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts);
public int NavigateTo (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts);
abstract member NavigateTo : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function NavigateTo (pts As TextSpan()) As Integer

Parameters

pts
TextSpan[]

[in] Specifies the location of a span of text. Values are contained in a TextSpan structure.

Returns

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

Applies to