In This Article

TextViewTaggerProvider<TTagger> Class

Provides an ITextViewTaggerProvider capable of creating ITagger<T> objects which have a constructor that accepts a single ITextView instance parameter.

public class TextViewTaggerProvider<TTagger> : TaggerProviderBase<TTagger>, ITextViewTaggerProvider where TTagger : class
Type Parameters:
TTagger -

The Type of ITagger<T> that this provider creates. The tagger type must have a constructor that accepts a single ITextView instance parameter.

Inheritance:
object TaggerProviderBase<TTagger> object
Implements:
ITextViewTaggerProvider

Constructors

TextViewTaggerProvider()

Initializes a new instance of the TextViewTaggerProvider class.

public TextViewTaggerProvider()

TextViewTaggerProvider(object)

Initializes a new instance of the TextViewTaggerProvider class.

public TextViewTaggerProvider(object singletonKey)
Parameter Type Description
singletonKey object

When a non-null value is passed, the tagger will be stored as a singleton under the specified key in the views's properties.

Methods

GetTagger<T>(ITextView)

Returns an ITagger<T> for the specified ITextView.

public ITagger<T> GetTagger<T>(ITextView view) where T : ITag
Type Parameters:
T -

The type of ITag created by the tagger.

Parameter Type Description
view ITextView

The ITextView that requires an ITagger<T>.

Returns

ITagger<T>:

An ITagger<T> for the specified ITextView.

Inherited Members