SimpleTagger<T>::RemoveTagSpans Method (Predicate<TrackingTagSpan<T>^>^)

 

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.

Exception Condition
ArgumentNullException

match is null.

This method is safe to use from any thread.

Return to top
Show: