Condividi tramite


SimpleTagger<T>.RemoveTagSpans Method

Removes all tag spans that match the conditions specified by the predicate.

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Dichiarazione
Public Function RemoveTagSpans ( _
    match As Predicate(Of TrackingTagSpan(Of T)) _
) As Integer
public int RemoveTagSpans(
    Predicate<TrackingTagSpan<T>> match
)
public:
int RemoveTagSpans(
    Predicate<TrackingTagSpan<T>^>^ match
)
member RemoveTagSpans : 
        match:Predicate<TrackingTagSpan<'T>> -> int 
public function RemoveTagSpans(
    match : Predicate<TrackingTagSpan<T>>
) : int

Parameters

Return Value

Type: System.Int32
The number of tag spans removed.

Exceptions

Exception Condition
ArgumentNullException

match is nulla null reference (Nothing in Visual Basic).

Remarks

This method is safe to use from any thread.

.NET Framework Security

See Also

Reference

SimpleTagger<T> Class

Microsoft.VisualStudio.Text.Tagging Namespace