IAdornmentLayer::RemoveMatchingAdornments Method (SnapshotSpan, Predicate<IAdornmentLayerElement^>^)
Visual Studio 2015
Removes all matching adornments with visual spans \.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
void RemoveMatchingAdornments(
SnapshotSpan visualSpan,
Predicate<IAdornmentLayerElement^>^ match
)
Parameters
- visualSpan
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The visual span to check for overlap with adornments.
- match
-
Type:
System::Predicate<IAdornmentLayerElement^>^
The predicate that will be called for each adornment
Any adornments without specified visual spans and tag are ignored.
Show: