IAdornmentLayer::RemoveMatchingAdornments Method (SnapshotSpan, Predicate<IAdornmentLayerElement^>^)

 

Removes all matching adornments with visual spans \.

Namespace:   Microsoft.VisualStudio.Text.Editor
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.

Return to top
Show: