IViewTaggerProvider.CreateTagger<T>(ITextView, ITextBuffer) 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 tag provider for the specified view and buffer.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagger<T> ^ CreateTagger(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
public Microsoft.VisualStudio.Text.Tagging.ITagger<T> CreateTagger<T> (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer buffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagger : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Tagging.ITagger<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagger(Of T As ITag) (textView As ITextView, buffer As ITextBuffer) As ITagger(Of T)
Type Parameters
- T
The type of the tag.
Parameters
- buffer
- ITextBuffer
The ITextBuffer.
Returns
The ITagAggregator<T> of the correct type for textView
.