IBufferTagAggregatorFactoryService.CreateTagAggregator<T> Method (ITextBuffer, TagAggregatorOptions)
Creates a tag aggregator for the specified text buffer using the given options.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaración
Function CreateTagAggregator(Of T As ITag) ( _
textBuffer As ITextBuffer, _
options As TagAggregatorOptions _
) As ITagAggregator(Of T)
ITagAggregator<T> CreateTagAggregator<T>(
ITextBuffer textBuffer,
TagAggregatorOptions options
)
where T : ITag
generic<typename T>
where T : ITag
ITagAggregator<T>^ CreateTagAggregator(
ITextBuffer^ textBuffer,
TagAggregatorOptions options
)
abstract CreateTagAggregator :
textBuffer:ITextBuffer *
options:TagAggregatorOptions -> ITagAggregator<'T> when 'T : ITag
JScript does not support generic types or methods.
Type Parameters
- T
The type of tag to aggregate.
Parameters
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer over which the aggregator should aggregate tags, including all source buffers if the buffer is a projection buffer.
- options
Type: Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions
The options to use for the newly created aggregator.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
The tag aggregator.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.