Dela via


ITextViewTaggerProvider<T>.CreateTaggerAsync Method

Definition

Creates a TextViewTagger<T> for textView.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.TextViewTagger<T>> CreateTaggerAsync (Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot textView, System.Threading.CancellationToken cancellationToken);
abstract member CreateTaggerAsync : Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.TextViewTagger<'T>>
Public Function CreateTaggerAsync (textView As ITextViewSnapshot, cancellationToken As CancellationToken) As Task(Of TextViewTagger(Of T))

Parameters

textView
ITextViewSnapshot

ITextViewSnapshot representing host text view.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress content creation.

Returns

A TextViewTagger<T> which will generate tags for textView.

Applies to