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

'Declaration
Function MarkSpan ( _
    pts As TextSpan() _
) As Integer
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 MarkAll support the MarkSpan method.

.NET Framework Security

See Also

Reference

IVsFindTarget Interface

Microsoft.VisualStudio.TextManager.Interop Namespace