[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a tag over the given span.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
- Type: Microsoft.VisualStudio.Text.ITrackingSpan
The ITrackingSpan that tracks the tag across text versions.
- Type: T
The tag to associate with the given span.
Return ValueType: Microsoft.VisualStudio.Text.Tagging.TrackingTagSpan<T>
The TrackingTagSpan<T> that was added, which can be used to remove the tag later on.
- 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.