Compartilhar via


IVsFindTarget.MarkSpan(TextSpan[]) Method

Definition

Highlight a given text span.

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

Parameters

pts
TextSpan[]

[in] Specifies the text span to highlight. 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::MarkSpan(  
   [in] const TextSpan * pts  
);  

For non-image targets, mark all is implemented by calling Find with a value of FR_MarkAll specified for the rgfOptions parameter. Image targets that support Mark All support the MarkSpan method.

Applies to