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
- pts
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Specifies the text span to highlight. 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.