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)
Syntax
‘선언
Sub RemoveMatchingAdornments ( _
visualSpan As SnapshotSpan, _
match As Predicate(Of IAdornmentLayerElement) _
)
void RemoveMatchingAdornments(
SnapshotSpan visualSpan,
Predicate<IAdornmentLayerElement> match
)
void RemoveMatchingAdornments(
SnapshotSpan visualSpan,
Predicate<IAdornmentLayerElement^>^ match
)
abstract RemoveMatchingAdornments :
visualSpan:SnapshotSpan *
match:Predicate<IAdornmentLayerElement> -> unit
function RemoveMatchingAdornments(
visualSpan : SnapshotSpan,
match : Predicate<IAdornmentLayerElement>
)
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
Remarks
Any adornments without specified visual spans and tag are ignored.
.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.