Método IViewTaggerProvider.CreateTagger<T>
Cria um provedor de marca para o buffer e o modo de exibição especificado.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)
Sintaxe
'Declaração
Function CreateTagger(Of T As ITag) ( _
textView As ITextView, _
buffer As ITextBuffer _
) As ITagger(Of T)
ITagger<T> CreateTagger<T>(
ITextView textView,
ITextBuffer buffer
)
where T : ITag
generic<typename T>
where T : ITag
ITagger<T>^ CreateTagger(
ITextView^ textView,
ITextBuffer^ buffer
)
abstract CreateTagger :
textView:ITextView *
buffer:ITextBuffer -> ITagger<'T> when 'T : ITag
JScript não oferece suporte a tipos ou métodos genéricos.
Parâmetros de tipo
- T
O tipo da marca.
Parâmetros
textView
Tipo: Microsoft.VisualStudio.Text.Editor.ITextViewO ITextView.
buffer
Tipo: Microsoft.VisualStudio.Text.ITextBufferO ITextBuffer.
Valor de retorno
Tipo: Microsoft.VisualStudio.Text.Tagging.ITagger<T>
O ITagAggregator<T> do tipo correto para textView.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.