Partager via


IVsFindTarget.MarkSpan Method

Highlight a given text span.

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

Syntax

'Déclaration
Function MarkSpan ( _
    pts As TextSpan() _
) As Integer
'Utilisation
Dim instance As IVsFindTarget
Dim pts As TextSpan()
Dim returnValue As Integer

returnValue = instance.MarkSpan(pts)
int MarkSpan(
    TextSpan[] pts
)
int MarkSpan(
    [InAttribute] array<TextSpan>^ pts
)
abstract MarkSpan : 
        pts:TextSpan[] -> int 
function MarkSpan(
    pts : TextSpan[]
) : int

Parameters

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

.NET Framework Security

See Also

Reference

IVsFindTarget Interface

IVsFindTarget Members

Microsoft.VisualStudio.TextManager.Interop Namespace