次の方法で共有


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

Remarks

Any adornments without specified visual spans and tag are ignored.

.NET Framework Security

See Also

Reference

IAdornmentLayer Interface

RemoveMatchingAdornments Overload

Microsoft.VisualStudio.Text.Editor Namespace