Método IViewTagAggregatorFactoryService.CreateTagAggregator<T> (ITextView, TagAggregatorOptions)
Cria um agregador de marca para o especificado ITextView e com as opções de determinado que agrega as marcas de determinado tipo.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)
Sintaxe
'Declaração
Function CreateTagAggregator(Of T As ITag) ( _
textView As ITextView, _
options As TagAggregatorOptions _
) As ITagAggregator(Of T)
ITagAggregator<T> CreateTagAggregator<T>(
ITextView textView,
TagAggregatorOptions options
)
where T : ITag
generic<typename T>
where T : ITag
ITagAggregator<T>^ CreateTagAggregator(
ITextView^ textView,
TagAggregatorOptions options
)
abstract CreateTagAggregator :
textView:ITextView *
options:TagAggregatorOptions -> ITagAggregator<'T> when 'T : ITag
JScript não oferece suporte a tipos ou métodos genéricos.
Parâmetros de tipo
- T
O tipo de marca para agregar.
Parâmetros
textView
Tipo: Microsoft.VisualStudio.Text.Editor.ITextViewO ITextView com o qual deseja obter o ITagAggregator<T>.
options
Tipo: Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptionsAs opções para usar para o agregador recém-criado.
Valor de retorno
Tipo: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<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.
Consulte também
Referência
IViewTagAggregatorFactoryService Interface