IAdornmentLayer.RemoveAdornmentsByVisualSpan Method
Removes all adornments with visual spans that overlap the given visual span.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Sub RemoveAdornmentsByVisualSpan ( _
visualSpan As SnapshotSpan _
)
void RemoveAdornmentsByVisualSpan(
SnapshotSpan visualSpan
)
void RemoveAdornmentsByVisualSpan(
SnapshotSpan visualSpan
)
abstract RemoveAdornmentsByVisualSpan :
visualSpan:SnapshotSpan -> unit
function RemoveAdornmentsByVisualSpan(
visualSpan : SnapshotSpan
)
Parameters
visualSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe visual span to check for overlap with adornments.
Remarks
Any adornments without specified visual spans 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.