IAdornmentLayer.RemoveMatchingAdornments 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.
Overloads
RemoveMatchingAdornments(Predicate<IAdornmentLayerElement>) |
Removes all adornments for which the given predicate returns |
RemoveMatchingAdornments(SnapshotSpan, Predicate<IAdornmentLayerElement>) |
Removes all adornments with visual spans for which the given predicate returns |
RemoveMatchingAdornments(Predicate<IAdornmentLayerElement>)
Removes all adornments for which the given predicate returns true
.
public:
void RemoveMatchingAdornments(Predicate<Microsoft::VisualStudio::Text::Editor::IAdornmentLayerElement ^> ^ match);
public void RemoveMatchingAdornments (Predicate<Microsoft.VisualStudio.Text.Editor.IAdornmentLayerElement> match);
abstract member RemoveMatchingAdornments : Predicate<Microsoft.VisualStudio.Text.Editor.IAdornmentLayerElement> -> unit
Public Sub RemoveMatchingAdornments (match As Predicate(Of IAdornmentLayerElement))
Parameters
- match
- Predicate<IAdornmentLayerElement>
The predicate that will be called for each adornment
Applies to
RemoveMatchingAdornments(SnapshotSpan, Predicate<IAdornmentLayerElement>)
Removes all adornments with visual spans for which the given predicate returns true
.
Any adornments without specified visual spans and tag are ignored.
public:
void RemoveMatchingAdornments(Microsoft::VisualStudio::Text::SnapshotSpan visualSpan, Predicate<Microsoft::VisualStudio::Text::Editor::IAdornmentLayerElement ^> ^ match);
public void RemoveMatchingAdornments (Microsoft.VisualStudio.Text.SnapshotSpan visualSpan, Predicate<Microsoft.VisualStudio.Text.Editor.IAdornmentLayerElement> match);
abstract member RemoveMatchingAdornments : Microsoft.VisualStudio.Text.SnapshotSpan * Predicate<Microsoft.VisualStudio.Text.Editor.IAdornmentLayerElement> -> unit
Public Sub RemoveMatchingAdornments (visualSpan As SnapshotSpan, match As Predicate(Of IAdornmentLayerElement))
Parameters
- visualSpan
- SnapshotSpan
The visual span to check for overlap with adornments.
- match
- Predicate<IAdornmentLayerElement>
The predicate that will be called for each adornment
Remarks
Any adornments without specified visual spans and tag are ignored.