Partager via


ITagger<T> Interface

Definition

A provider of tags over a buffer.

generic <typename T>
 where T : ITagpublic interface class ITagger
public interface ITagger<out T> where T : ITag
type ITagger<'T (requires 'T :> ITag)> = interface
Public Interface ITagger(Of Out T)

Type Parameters

T

The type of tags to generate.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived

Examples

For examples of using this interface, see the following walkthroughs:

Walkthrough: Highlighting Text

Walkthrough: Outlining

Walkthrough: Displaying Matching Braces

Walkthrough: Displaying SmartTags

Walkthrough: Creating a Margin Glyph

Remarks

For more information about tagging, see the "Tags and Classifiers" section of Inside the Editor. For information about extending and adding tags, see the "Extending Tags" section of Language Service and Editor Extension Points.

Methods

GetTags(NormalizedSnapshotSpanCollection)

Gets all the tags that intersect the spans.

Events

TagsChanged

Occurs when tags are added to or removed from the provider.

Applies to