次の方法で共有


IAdornmentLayer.RemoveMatchingAdornments Method

Definition

Overloads

RemoveMatchingAdornments(Predicate<IAdornmentLayerElement>)

Removes all adornments for which the given predicate returns true.

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.

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.

Applies to