IBufferTagAggregatorFactoryService.CreateTagAggregator 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.
Overloads
CreateTagAggregator<T>(ITextBuffer) |
Creates a tag aggregator for a |
CreateTagAggregator<T>(ITextBuffer, TagAggregatorOptions) |
Creates a tag aggregator for a |
CreateTagAggregator<T>(ITextBuffer)
Creates a tag aggregator for a textBuffer
.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.ITextBuffer textBuffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Tagging.ITagAggregator<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagAggregator(Of T As ITag) (textBuffer As ITextBuffer) As ITagAggregator(Of T)
Type Parameters
- T
The type of tag to aggregate.
Parameters
- textBuffer
- ITextBuffer
The ITextBuffer over which the aggregator should aggregate tags, including all source buffers if the buffer is a projection buffer.
Returns
The tag aggregator for textBuffer
.
Remarks
The ITagAggregatorr<T>.DispatchedTagsChanged event will be raised on the thread used to create the tag aggregator.
Applies to
CreateTagAggregator<T>(ITextBuffer, TagAggregatorOptions)
Creates a tag aggregator for a textBuffer
, using the given options.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Text::Tagging::TagAggregatorOptions options);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions options) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions -> Microsoft.VisualStudio.Text.Tagging.ITagAggregator<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagAggregator(Of T As ITag) (textBuffer As ITextBuffer, options As TagAggregatorOptions) As ITagAggregator(Of T)
Type Parameters
- T
The type of tag to aggregate.
Parameters
- textBuffer
- ITextBuffer
The ITextBuffer over which the aggregator should aggregate tags, including all source buffers if the buffer is a projection buffer.
- options
- TagAggregatorOptions
The options to use for the newly created aggregator.
Returns
The tag aggregator for textBuffer
.