ITaggerProvider.CreateTagger<T>(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 buffer.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagger<T> ^ CreateTagger(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
public Microsoft.VisualStudio.Text.Tagging.ITagger<T> CreateTagger<T> (Microsoft.VisualStudio.Text.ITextBuffer buffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagger : 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) (buffer As ITextBuffer) As ITagger(Of T)
Type Parameters
- T
The type of the tag.
Parameters
- buffer
- ITextBuffer
The ITextBuffer.
Returns
The ITagger<T>.