ITextViewTaggerProvider<T>.CreateTaggerAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Task<TextViewTagger<T>>
A TextViewTagger<T> which will generate tags for textView
.