SimpleTagger<T>.RemoveTagSpans Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all tag spans that match the conditions specified by the predicate.
public:
int RemoveTagSpans(Predicate<Microsoft::VisualStudio::Text::Tagging::TrackingTagSpan<T> ^> ^ match);
public int RemoveTagSpans (Predicate<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<T>> match);
member this.RemoveTagSpans : Predicate<Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<'T>> -> int
Public Function RemoveTagSpans (match As Predicate(Of TrackingTagSpan(Of T))) As Integer
Parameters
- match
- Predicate<TrackingTagSpan<T>>
The Predicate<T> that defines the match.
Returns
The number of tag spans removed.
Exceptions
match
is null.
Remarks
This method is safe to use from any thread.