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)

public int RemoveTagSpans(
	Predicate<TrackingTagSpan<T>> match
)

Parameters

match
Type: System.Predicate<TrackingTagSpan<T>>

The Predicate<T> that defines the match.

Return Value

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

ExceptionCondition
ArgumentNullException

match is null.

This method is safe to use from any thread.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft