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
'Declaration
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
match
Type: System.Predicate<TrackingTagSpan<T>>The Predicate<T> that defines the match.
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
- 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.